[Samba] ntlm_auth works.... and then doesn't (winbind related)
Adam Tauno Williams
adamtaunowilliams at gmail.com
Thu Aug 21 18:06:00 GMT 2008
CentOS5, Samba 3.2.1
[root at gateway tmp]# service winbind restart
Shutting down Winbind services: [ OK ]
Starting Winbind services: [ OK ]
$ ntlm_auth --username=adam --domain=BACKBONE --password=CORRECT
NT_STATUS_OK: Success (0x0)
# test membership of group I'm in
$ ntlm_auth --username=adam --domain=BACKBONE --password=CORRECT \
--require-membership-of=BACKBONE\\cis
NT_STATUS_OK: Success (0x0)
# test with wrong password
$ ntlm_auth --username=adam --domain=BACKBONE --password=fred123 \
--require-membership-of=BACKBONE\\cis
NT_STATUS_WRONG_PASSWORD: Wrong Password (0xc000006a)
# test with wrong password and group I'm not in
$ ntlm_auth --username=adam --domain=BACKBONE --password=fred123 \
--require-membership-of=BACKBONE\\elk
NT_STATUS_INVALID_PARAMETER: Invalid parameter (0xc000000d)
# Test with correct password
$ ntlm_auth --username=adam --domain=BACKBONE --password=CORRECT
NT_STATUS_INVALID_PARAMETER: Invalid parameter (0xc000000d)
Hey! That should have worked, let's try again...
$ ntlm_auth --username=adam --domain=BACKBONE --password=CORRECT
NT_STATUS_INVALID_PARAMETER: Invalid parameter (0xc000000d)
# Bounce winbind
$ service winbind restart
Shutting down Winbind services: [ OK ]
Starting Winbind services: [ OK ]
Works again!
$ ntlm_auth --username=adam --domain=BACKBONE --password=CORRECT
NT_STATUS_OK: Success (0x0)
More information about the samba
mailing list