[Samba] SMB LDAP tools

Markus Schabel markus.schabel at tgm.ac.at
Mon Dec 16 21:43:01 GMT 2002


Gregory Chagnon wrote:
> Hi-
> I'm using the SMB ldap tools to add entries to my ldap database for use 
> with Samba.  Does anyone know how I can create the userPassword field 
> with PHP?  I've tried a few things, but none of them worked.  Thanks!!
> -Greg

Depends on what you want to use as algorithm. But it works simply:

just do
$userPassword = "{crypt}".crypt( $clearPassword );

Markus Schabel
+--------------------------------------------+
| TGM - Die Schule der Technik               |
| IT-Service                                 |
| A-1200 Wien, Wexstrasse 19-23              |
| Tel.: +43(1)33126/316 Fax: +43(1)33126/154 |
| eMail: markus.schabel at tgm.ac.at            |
+--------------------------------------------+




More information about the samba mailing list