Login to domain still failing ...
Luke Kenneth Casson Leighton
lkcl at samba.org
Thu Mar 9 03:42:20 GMT 2000
here is a typescriptt of a createuser plus nt login. it _does_ work.
you _may_, as i mentioned earlier, have to delete the var/locks directory
and restart.
the first enumu returns nothing, because there are zero entries in the sam
database. i then create two users. i then check that the login works.
i then re-run using smbd (-S sambateam-1) instead of
direct-access-to-msrpc-daemons-on-loopback-as-root (.S .) and using the
root mb password (test :).
and then test the ntlogin command with that, with the "test" user.
Script started on Thu Mar 9 03:33:57 2000
[root at sambateam-1 source]# bin/rpcclient -S . -U root%test -l log
[root at .]$ enumu
enumu
SAM Enumerate Users
[root at .]$ createuser root -p test
createuser root -p test
SAM Create Domain User
Domain: SAMBA-TNG Name: root ACB: [U ]
cCreate Domain User: OK
[root at .]$ createuser test -p test
createuser test -p test
SAM Create Domain User
Domain: SAMBA-TNG Name: test ACB: [U ]
Create Domain User: OK
[root at .]$ ntlogin SAMBA-TNG\root test
ntlogin SAMBA-TNG\root test
cmd_nt_login: login (root) test succeeded: Yes
[root at .]$ ntlogin SAMBA-TNG\root tttt
ntlogin SAMBA-TNG\root tttt
cmd_nt_login: login (root) test succeeded: No
[root at .]$ exit
exit
[root at sambateam-1 source]# bin/rpcclient -S sambateam-1 -U root%test -l log
[root at SAMBATEAM-1]$ enumu
enumu
SAM Enumerate Users
User RID: 3e8 User Name: root
User RID: bbc User Name: test
[root at SAMBATEAM-1]$ ntlogin SAMBA-TNG\test test
ntlogin SAMBA-TNG\test test
cmd_nt_login: login (test) test succeeded: Yes
[root at SAMBATEAM-1]$ ntlogin SAMBA-TNG\test tttttbadpw
ntlogin SAMBA-TNG\test tttttbadpw
cmd_nt_login: login (test) test succeeded: No
[root at SAMBATEAM-1]$ quit
quit
[root at sambateam-1 source]# exit
Script done on Thu Mar 9 03:35:39 2000
<a href=" mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href=" http://cb1.com/~lkcl" > Samba and Network Development </a>
<a href=" http://samba.org" > Samba Web site </a>
<a href=" http://www.iss.net" > Internet Security Systems, Inc. </a>
<a href=" http://mcp.com" > Macmillan Technical Publishing </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-ntdom
mailing list