NT Authentication not working?

Akira Matsuno matsaki at statcan.ca
Mon Aug 31 18:01:57 GMT 1998


Andrew Perrin - Demography wrote:
> 
> Looks like you don't have a smbpasswd file, or it's in the wrong place.
> Samba looks like it's looking for it in
> 
> /usr/local/bin/samba//private/smbpasswd
> 
> and not finding it.
> 

I have security = server  set in my smb.conf... Do I still need to
create an smbpasswd file?  I guess so eh? cuz if it fails to find the
password server, which in my log, it seems to fail, it reverts to
security = user.. then back to security = server.... My log shows it
initially rejecting the password, then errors on the smbpasswd file,
then it accepts the password....

I'm confused why the password server rejected the initial password .. I
supplied the correct password..  If I logon to the machine with the NT
Account the same as the account who has access to the Samba share, then
there are no problems... ie. it accepts the password right away...

It seems that only when I am logged on to the NT box with a different
account, that the password server will reject the initial password...

Is this common behaviour?




> 
> On Sat, 29 Aug 1998, Akira Matsuno wrote:
> 
> > I am getting an error when I try to connect to a Samba share from my NT
> > workstation.. It comes up with Network Error 2108 occurred...
> > This happens when I'm logged into the NT Workstation with one account,
> > and try to connect to a private Samba share using a different account.
> > (I have created the unix accounts from Jerry's NT2PASSWD perl script
> > with no problems.. thanx Jerry :)
> >
> > Eg.  NT Logon Userid: matsaki
> >      and in File Manager, I map drive F:
> >      Path: \\IMAPS1\villenh
> >      Connnect as: villenh
> >
> > I supply the correct password for villenh , but I get the Network Error
> > 2108... If I cancel out of the map network drive, I find that it did
> > actually do the mapping, because I can see the shared F directory...
> >
> > Here is my smb log:
> >  1998/08/28 15:50:00 Transaction 39 of length 191
> > switch message SMBsesssetupX (pid 2872)
> > Domain=[IMAD]  NativeOS=[Windows NT 1381] NativeLanMan=[]
> > sesssetupX:name=[villenh]
> > password server IMAD1 rejected the password
> > startsmbfilepwent: unable to open file
> > /usr/local/bin/samba//private/smbpasswd
> > iterate_getsmbpwnam: unable to open smb password database.
> > Couldn't find user villenh in smb_passwd file.
> > NT Password did not match ! Defaulting to Lanman
> > startsmbfilepwent: unable to open file
> > /usr/local/bin/samba//private/smbpasswd
> > iterate_getsmbpwnam: unable to open smb password database.
> > Couldn't find user villenh in smb_passwd file.
> > 1998/08/28 15:50:06 error packet at line 685 cmd=115 (SMBsesssetupX)
> > eclass=2 ecode=2
> > error string = No such file or directory
> > 1998/08/28 15:50:10 Transaction 40 of length 191
> > switch message SMBsesssetupX (pid 2872)
> > Domain=[IMAD]  NativeOS=[Windows NT 1381] NativeLanMan=[]
> > sesssetupX:name=[villenh]
> > skipping NetWkstaUserLogon with password server IMAD1
> > password server IMAD1 accepted the password
> > villenh is in 1 groups
> > 100
> > uid 1072 registered to name villenh
> > Clearing default real name
> > Chained message
> > switch message SMBtconX (pid 2872)
> > ACCEPTED: validated uid ok as non-guest
> > found free connection number 61
> > Connect path is /usr/samba/samba1/villenh
> > villenh is in 1 groups
> > 100
> > chdir to /usr/samba/samba1/villenh
> > chdir to /sbin/init.d
> > 1998/08/28 15:50:13 c110255 (142.205.219.223) connect to service villenh
> > as user villenh (uid=1072,gid=100) (pid 2
> > 872)
> > 1998/08/28 15:50:13 tconX service=villenh user=villenh cnum=61
> > ~
> >
> >
> > --
> > * Akira Matsuno
> > * Network Administrator / Oracle DBA
> > * Statistics Canada
> > * Ottawa Ontario
> >

-- 
* Akira Matsuno
* Network Administrator / Oracle DBA
* Statistics Canada
* Ottawa Ontario


More information about the samba-ntdom mailing list