On Sun, 2003-03-16 at 05:53, Paul Reilly wrote: > > I need to do an smb auth in an application I'm writing. > I've looked at the source in smblib/*.c but I'm unsure > which library and which function call I should link against. > > I'm looking for something like this > > $result = smb_auth($user,$pass,$pdc); > > so that I can check if a user/pass combination is a valid > username/password on the windows network. > > What library, and what function call should I use? > I'm working with Samba 2.2.8
None. Do not use smblib. If you want to verify a password against Windows, use winbindd and pam_winbind or ntlm_auth (new in 3.0 alpha). smblib has had a number of issues over the years, and I understand that the authentication is usually just LM based (case-insensitive). More particularly, there is no way for it to tell if it's actually talking to the DC. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net
signature.asc
Description: This is a digitally signed message part
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba