[Samba] smblib/auth
Andrew Bartlett
abartlet at samba.org
Sat Mar 15 21:52:37 GMT 2003
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 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030316/7498d7dd/attachment.bin
More information about the samba
mailing list