[Samba] unable to run login scripts in [netlogon] - Samba

This is a discussion on [Samba] unable to run login scripts in [netlogon] - Samba ; My Windows XP SP3 clients aren't loading their logged_in_username.bat from my netlogon share, and I can't figure out why. It looks like in the log file the Windows PCs are loading the script, its just not executing it on the ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [Samba] unable to run login scripts in [netlogon]

  1. [Samba] unable to run login scripts in [netlogon]

    My Windows XP SP3 clients aren't loading their logged_in_username.bat
    from my netlogon share, and I can't figure out why. It looks like in
    the log file the Windows PCs are loading the script, its just not
    executing it on the windows PCs for some reason, but if I click start,
    run, and type in \\roark\netlogon\scripts\jholland.bat it runs fine.
    Running samba 3.0.31 and here's the excerpt from the log file:

    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1004
    call=5 total_data=0
    [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    Transaction 8 of length 152
    [2008/07/11 08:23:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 21442) conn 0x2aaaaaea24c0
    [2008/07/11 08:23:18, 3] smbd/sec_ctx.c:set_sec_ctx(241)
    setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
    [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
    call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005
    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1005
    call=5 total_data=0
    [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    Transaction 9 of length 152
    [2008/07/11 08:23:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 21442) conn 0x2aaaaaea24c0
    [2008/07/11 08:23:18, 3] smbd/sec_ctx.c:set_sec_ctx(241)
    setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
    [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
    call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1034
    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1034
    call=5 total_data=0
    [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    Transaction 10 of length 136

    here is the jholland user in ldap:

    dn: uid=jholland,ou=People,dc=mdah,dc=state,dc=ms,dc=u s
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: posixAccount
    objectClass: shadowAccount
    objectClass: hostObject
    objectClass: sambaSamAccount
    cn: Jim
    sn: Hollandsworth
    givenName: Jim Hollandsworth
    uid: jholland
    uidNumber: 865
    gidNumber: 100
    homeDirectory: /home/jholland
    mail: jholland@mdah.state.ms.us
    shadowMax: 99999
    shadowWarning: 7
    loginShell: /bin/bash
    gecos: Jim Hollandsworth
    host: roark
    host: archives3
    shadowLastChange: 14070
    sambaSID: S-1-5-21-4231144054-2518398651-1985341777-2730
    displayName: Jim Hollandsworth
    sambaLMPassword: xxxxxxxxxxxxxxxxxxxxx
    sambaNTPassword: xxxxxxxxxxxxxxxxxxxxx
    sambaPasswordHistory:
    00000000000000000000000000000000000000000000000000 000000
    00000000
    sambaPwdLastSet: 1215711980
    sambaAcctFlags: [U ]
    userPassword:: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    sambaProfilePath: \\roark\profiles\jholland
    sambaHomePath: \\roark\jholland
    sambaLogonScript: scripts\jholland.bat
    sambaHomeDrive: R:

    and my smb.conf:

    [global]
    unix charset = LOCALE
    workgroup = ADMIN
    server string = Roark
    update encrypted = Yes
    map to guest = Bad Password
    passdb backend = ldapsam:ldap://roark.mdah.state.ms.us
    username map = /etc/samba/smbusers
    log level = 3
    log file = /var/log/samba/log.%m
    max log size = 500000
    name resolve order = wins bcast hosts
    time server = Yes
    socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
    printcap name = CUPS
    show add printer wizard = No
    add user script = /usr/sbin/smbldap-useradd -a -m "%u"
    delete user script = /usr/sbin/smbldap-userdel "%u"
    add group script = /usr/sbin/smbldap-groupadd -p "%g"
    delete group script = /usr/sbin/smbldap-groupdel "%g"
    add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
    delete user from group script = /usr/sbin/smbldap-groupmod -x
    "%u" "%g"
    set primary group script = /usr/sbin/smbldap-groupmod -g "%g" "%u"
    add machine script = /usr/sbin/smbldap-useradd -w "%u"
    logon script = scripts\%U.bat
    logon path = \\%N\profiles\%U
    logon drive = R:
    logon home = \\roark\%U
    domain logons = Yes
    os level = 66
    preferred master = Yes
    domain master = Yes
    dns proxy = No
    wins proxy = Yes
    wins support = Yes
    ldap admin dn = cn=Manager,dc=mdah,dc=state,dc=ms,dc=us
    ldap group suffix = ou=Group
    ldap idmap suffix = ou=Idmap
    ldap machine suffix = Computers
    ldap passwd sync = Yes
    ldap suffix = dc=mdah,dc=state,dc=ms,dc=us
    ldap user suffix = ou=People
    idmap backend = ldap:ldap://mdah.state.ms.us
    idmap uid = 20000-30000
    idmap gid = 20000-30000
    template homedir = /home/winnt/%D/%U
    template shell = /bin/bash
    winbind separator = +
    winbind enum users = Yes
    winbind enum groups = Yes
    printer admin = root, awilliam, smccoy, jomiles, sokolsky
    guest ok = Yes
    hosts allow = 10.8.
    profile acls = Yes
    map acl inherit = Yes
    posix locking = No
    msdfs root = Yes

    [homes]
    comment = Home Directories
    valid users = %S
    read only = No
    create mask = 0700
    force create mode = 0700
    directory mask = 0700
    force directory mode = 0700
    guest ok = No
    nt acl support = No
    browseable = No
    csc policy = disable

    [netlogon]
    path = /var/lib/samba/netlogon
    guest ok = No
    nt acl support = No
    csc policy = disable

    [profiles]
    path = /var/lib/samba/profiles
    read only = No
    create mask = 0777
    directory mask = 0777
    browseable = No


    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba


  2. Re: [Samba] unable to run login scripts in [netlogon]

    On Fri, Jul 11, 2008 at 08:36:48AM -0500, Adam Williams wrote:
    > My Windows XP SP3 clients aren't loading their logged_in_username.bat
    > from my netlogon share, and I can't figure out why. It looks like in
    > the log file the Windows PCs are loading the script, its just not
    > executing it on the windows PCs for some reason, but if I click start,
    > run, and type in \\roark\netlogon\scripts\jholland.bat it runs fine.
    > Running samba 3.0.31 and here's the excerpt from the log file:
    >
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    > dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    > dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    > [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    > call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1004
    > call=5 total_data=0
    > [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    > Transaction 8 of length 152
    > [2008/07/11 08:23:18, 3] smbd/process.c:switch_message(927)
    > switch message SMBtrans2 (pid 21442) conn 0x2aaaaaea24c0
    > [2008/07/11 08:23:18, 3] smbd/sec_ctx.c:set_sec_ctx(241)
    > setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
    > [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
    > call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    > dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    > dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    > [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    > call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1005
    > call=5 total_data=0
    > [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    > Transaction 9 of length 152
    > [2008/07/11 08:23:18, 3] smbd/process.c:switch_message(927)
    > switch message SMBtrans2 (pid 21442) conn 0x2aaaaaea24c0
    > [2008/07/11 08:23:18, 3] smbd/sec_ctx.c:set_sec_ctx(241)
    > setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
    > [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
    > call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1034
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(557)
    > dfs_redirect: Not redirecting \roark\netlogon\scripts\jholland.bat.
    > [2008/07/11 08:23:18, 3] smbd/msdfs.c:dfs_redirect(562)
    > dfs_redirect: Path converted to non-dfs path scripts/jholland.bat
    > [2008/07/11 08:23:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
    > call_trans2qfilepathinfo scripts/jholland.bat (fnum = -1) level=1034
    > call=5 total_data=0
    > [2008/07/11 08:23:18, 3] smbd/process.crocess_smb(1069)
    > Transaction 10 of length 136


    None of these log entries show an error in accessing the files.
    We'd need to see much more of the log before understanding what
    is going on here. Do you want to log a bug and upload complete
    debug level 10 logfiles ?

    Jeremy.
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba


  3. Re: [Samba] unable to run login scripts in [netlogon]

    sure i'll do that now. thanks.

    Jeremy Allison wrote:
    > None of these log entries show an error in accessing the files.
    > We'd need to see much more of the log before understanding what
    > is going on here. Do you want to log a bug and upload complete
    > debug level 10 logfiles ?
    >
    > Jeremy.
    >


    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba


+ Reply to Thread