Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.ysu.edu!usenet.ins.cwru.edu!howland.reston.ans.net!cs.utexas.edu!not-for-mail From: wcp@lpds.sublink.org (Walter C. Pelissero) Newsgroups: comp.os.386bsd.apps Subject: Re: Anyone got Samba 1.9.02 and FreeBSD 2.0 running? Date: 19 Feb 1995 17:39:42 -0600 Organization: Sweet home under white clouds Lines: 46 Sender: nobody@cs.utexas.edu Message-ID: <WCP.95Feb19160353@lpds.lpds.com> References: <3hrhbt$2ee@due.unit.no> NNTP-Posting-Host: news.cs.utexas.edu In article <3hrhbt$2ee@due.unit.no> jot@uranus.ifi.unit.no (Jo Torsmyr) writes: Jo> I have installed and configured Samba (version 1.9.02) on FreeBSD Jo> 2.0. But I am not able to connect to a "non-public" service, Jo> e.g. a users private directory. Both my Windows for Workgroups Jo> 3.11 client and 'smbclient' which is included in Samba tells me Jo> that the password does not match the user. I have tried both Jo> uppercase and lowercase passwords. I compiled Samba with the flags Jo> section for FreeBSD in the makefile. One funny thing: 'smbclient' Jo> on FreeBSD is able to connect to a password-protected disk-service Jo> on the WfW 3.11 machine (same password and account on both Jo> systems)! I don't know if it is the same problem, but with samba 1.8.05 you can't use the "standard" FreeBSD porting as is. I belive it was for FreeBSD 1.x. Take a look in password.c, there should be a piece of code that looks like this: char this_user[100]=""; char this_salt[???]=""; char this_crypted[100]=""; Substitute whatever ??? is with 100. Then look for a line like this: StrnCpy(this_salt,pass->pw_passwd,2); It should be in password_ok(). Modify it as follows: #if __FreeBSD__ == 2 strcpy(this_salt,pass->pw_passwd); #else StrnCpy(this_salt,pass->pw_passwd,2); #endif I repeat, this is for samba 1.8.05. Things may be different on samba 1.9. Good luck. PS The author of samba should already know this little patch. -- P4 32 8 @A ^@@A ^@@Ax^@@A ^@DA"^@D]%xJe&H1\236\331\306