For a few weeks now we have been trying to research why our domain
will not authenticate when we are logging in. The Samba logs indicate
that our computers properly add into the domain, however after
rebooting and attempting to log in we recieve an error message stating
that our computer account is not in the domain.

After reading the logs we have realized that Samba is indeed recieving
and verifying that the computer is allowed access to the domain,
however it appears that Samba is not recieving a username/passwd with
the login request. This in turns leaves Samba using "nobody" for the
rest of the authentication sequence, and when it hands the connection
over the IPC$ refusing access to the domain because we cannot allow
anonymous access.

Our server is setup is CentOS 4.1 64bit edition, Samba 3.0.21b, Pam,
and OpenLDAP.

I have included below the Samba log of when I attempt to log into the
domain, and the samba configuration file.

The logging level was set to 3 when these logs were taken.

Also please be aware these files are edited for security, and ridiculous le=
ngth.


**********************************
***BEING DOMAIN LOGIN***
**********************************

[2006/02/08 16:34:43, 3] smbd/sec_ctx.cush_sec_ctx(256)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx =3D 1
[2006/02/08 16:34:43, 3] smbd/uid.cush_conn_ctx(393)
push_conn_ctx(0) : conn_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 1
[2006/02/08 16:34:43, 3] smbd/sec_ctx.cop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(219)
check_ntlm_password: Checking password for unmapped user
[]\[]@[SEOUL] with the new password interface
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(222)
check_ntlm_password: mapped user is: [IPOV]\[]@[SEOUL]
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(268)
check_ntlm_password: guest authentication for user [] succeeded
[2006/02/08 16:34:43, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(332)
NTLMSSP Sign/Seal - Initialising with flags:
[2006/02/08 16:34:43, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
Got NTLMSSP neg_flags=3D0x60088235
[2006/02/08 16:34:43, 3] smbd/password.c:register_vuid(257)
User name: nobody=09Real name: nobody
[2006/02/08 16:34:43, 3] smbd/password.c:register_vuid(276)
UNIX uid 99 is UNIX user nobody, and will be vuid 101
[2006/02/08 16:34:43, 3] smbd/process.crocess_smb(1194)
Transaction 3 of length 82
[2006/02/08 16:34:43, 3] smbd/process.c:switch_message(993)
switch message SMBtconX (pid 2789) conn 0x0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] lib/access.c:check_access(313)
check_access: no hostnames in host allow/deny list.
[2006/02/08 16:34:43, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.14.65)
[2006/02/08 16:34:43, 3] smbd/service.c:make_connection_snum(488)
Connect path is '/tmp' for service [IPC$]
[2006/02/08 16:34:43, 3] lib/util_seaccess.c:se_access_check(250)
[2006/02/08 16:34:43, 3] lib/util_seaccess.c:se_access_check(251)
se_access_check: user sid is S-1-5-21-xxx-xxx-xxx-501
se_access_check: also S-1-5-21-xxx-xxx-xxx-514
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-32-546
se_access_check: also S-1-5-21-xxx-xxx-xxx-1199
[2006/02/08 16:34:43, 3] smbd/vfs.c:vfs_init_default(216)
Initialising default vfs hooks
[2006/02/08 16:34:43, 2] smbd/uid.c:change_to_user(230)
change_to_user: SMB user (unix user nobody, vuid 101) not permitted
access to share IPC$.
[2006/02/08 16:34:43, 0] smbd/service.c:make_connection_snum(592)
Can't become connected user!
[2006/02/08 16:34:43, 3] smbd/connection.c:yield_connection(69)
Yielding connection to IPC$
[2006/02/08 16:34:43, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(668) cmd=3D117 (SMBtconX) NT_STATUS_LOGON_FA=
ILURE
[2006/02/08 16:34:43, 3] smbd/process.crocess_smb(1194)
Transaction 4 of length 43
[2006/02/08 16:34:43, 3] smbd/process.c:switch_message(993)
switch message SMBulogoffX (pid 2789) conn 0x0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] smbd/reply.c:reply_ulogoffX(1606)
ulogoffX vuid=3D101
[2006/02/08 16:34:43, 3] smbd/process.c:timeout_processing(1447)
timeout_processing: End of file from client (client has disconnected).
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 2] smbd/server.c:exit_server(614)
Closing connections
[2006/02/08 16:34:43, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2006/02/08 16:34:43, 3] smbd/server.c:exit_server(655)
Server exit (normal exit)
[2006/02/08 16:34:43, 3] smbd/sec_ctx.cush_sec_ctx(256)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx =3D 1
[2006/02/08 16:34:43, 3] smbd/uid.cush_conn_ctx(393)
push_conn_ctx(0) : conn_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 1
[2006/02/08 16:34:43, 3] smbd/sec_ctx.cop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(219)
check_ntlm_password: Checking password for unmapped user
[]\[]@[SEOUL] with the new password interface
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(222)
check_ntlm_password: mapped user is: [IPOV]\[]@[SEOUL]
[2006/02/08 16:34:43, 3] auth/auth.c:check_ntlm_password(268)
check_ntlm_password: guest authentication for user [] succeeded
[2006/02/08 16:34:43, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(332)
NTLMSSP Sign/Seal - Initialising with flags:
[2006/02/08 16:34:43, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
Got NTLMSSP neg_flags=3D0x60088235
[2006/02/08 16:34:43, 3] smbd/password.c:register_vuid(257)
User name: nobody=09Real name: nobody
[2006/02/08 16:34:43, 3] smbd/password.c:register_vuid(276)
UNIX uid 99 is UNIX user nobody, and will be vuid 101
[2006/02/08 16:34:43, 3] smbd/process.crocess_smb(1194)
Transaction 3 of length 82
[2006/02/08 16:34:43, 3] smbd/process.c:switch_message(993)
switch message SMBtconX (pid 2790) conn 0x0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] lib/access.c:check_access(313)
check_access: no hostnames in host allow/deny list.
[2006/02/08 16:34:43, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.14.65)
[2006/02/08 16:34:43, 3] smbd/service.c:make_connection_snum(488)
Connect path is '/tmp' for service [IPC$]
[2006/02/08 16:34:43, 3] lib/util_seaccess.c:se_access_check(250)
[2006/02/08 16:34:43, 3] lib/util_seaccess.c:se_access_check(251)
se_access_check: user sid is S-1-5-21-xxx-xxx-xxx-501
se_access_check: also S-1-5-21-xxx-xxx-xxx-514
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-32-546
se_access_check: also S-1-5-21-xxx-xxx-xxx-1199
[2006/02/08 16:34:43, 3] smbd/vfs.c:vfs_init_default(216)
Initialising default vfs hooks
[2006/02/08 16:34:43, 2] smbd/uid.c:change_to_user(230)
change_to_user: SMB user (unix user nobody, vuid 101) not permitted
access to share IPC$.
[2006/02/08 16:34:43, 0] smbd/service.c:make_connection_snum(592)
Can't become connected user!
[2006/02/08 16:34:43, 3] smbd/connection.c:yield_connection(69)
Yielding connection to IPC$
[2006/02/08 16:34:43, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(668) cmd=3D117 (SMBtconX) NT_STATUS_LOGON_FA=
ILURE
[2006/02/08 16:34:43, 3] smbd/process.crocess_smb(1194)
Transaction 4 of length 43
[2006/02/08 16:34:43, 3] smbd/process.c:switch_message(993)
switch message SMBulogoffX (pid 2790) conn 0x0
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 3] smbd/reply.c:reply_ulogoffX(1606)
ulogoffX vuid=3D101
[2006/02/08 16:34:43, 3] smbd/process.c:timeout_processing(1447)
timeout_processing: End of file from client (client has disconnected).
[2006/02/08 16:34:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx =3D 0
[2006/02/08 16:34:43, 2] smbd/server.c:exit_server(614)
Closing connections
[2006/02/08 16:34:43, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2006/02/08 16:34:43, 3] smbd/server.c:exit_server(655)
Server exit (normal exit)

*******************************
***END DOMAIN LOGIN***
*******************************

*****************************
***BEGIN SMB.CONF***
*****************************
[global]
ldap ssl =3D no
name resolve order =3D wins lmhosts hosts bcast
passwd chat =3D *new*password %n\n *new*password %n\n *successfully=
*
idmap gid =3D 10000000-30000000
passwd program =3D /usr/local/sbin/smbldap-passwd -o %u
allow hosts =3D 192.168.255. 127.0.0.
dns proxy =3D yes
netbios name =3D *HOSTNAME*
idmap uid =3D 10000000-30000000
local master =3D yes
workgroup =3D IPOV
os level =3D 65
security =3D user
max log size =3D 50
log file =3D /var/log/samba/%m.log
log level =3D 3
socket options =3D TCP_NODELAY SO_RCVBUF=3D8192 SO_SNDBUF=3D8192
null passwords =3D no
encrypt passwords =3D yes
ldap passwd sync =3D yes
# unix password sync =3D yes
#encrypt passwords =3D no
#Set *HOSTNAME* as master Samba server
domain master =3D yes
template shell =3D /bin/false
wins support =3D yes
server string =3D IPOV Samba Server
passdb backend =3D ldapsam:ldap://127.0.0.1/
ldap admin dn =3D cn=3DManager,dc=3Dipov,dc=3Dinfo
ldap group suffix =3D ou=3DGroups
ldap machine suffix =3D ou=3DComputers
ldap user suffix =3D ou=3DUsers
path =3D /home
ldap suffix =3D dc=3Dipov,dc=3Dinfo
add user script =3D /usr/local/sbin/smbldap-useradd -w %u
valid users =3D @"Domain Admins",@"Domain Users"
preferred master =3D yes
domain logons =3D yes
logon script =3D STARTUP.BAT
logon path =3D \\%N\Profiles\%U
password server =3D *HOSTNAME*

#Added Feb 06 - Andy Kesterson
#These probably arn't needed but I wanted to make sure they were
#properly declared.
#lanman auth =3D yes
acl compatibility =3D auto
# client ntlmv2 auth =3D yes
ntlm auth =3D yes
nt pipe support =3D yes

[homes]
comment =3D Home Directories
path =3D /homes/%U
valid users =3D %S
read only =3D no
create mask =3D 0664
directory mask =3D 0775
browseable =3D yes

# Un-comment the following and create the netlogon directory for Domain Log=
ons
[netlogon]
comment =3D Network Logon Service
path =3D /mnt/data/netlogon
browseable =3D yes
read only =3D yes
write list =3D ntadmin
guest ok =3D yes

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
[Profiles]
path =3D /mnt/data/profiles
writeable =3D yes
browseable =3D no
create mode =3D 0644
directory mode =3D 0775
guest ok =3D yes

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