smbpasswd in an LDAP directory

Gerald Carter gcarter at valinux.com
Fri Jun 29 21:06:46 GMT 2001


On Fri, 29 Jun 2001, Gerald Carter wrote:

> FYI....
>
> I just checked in a schema file for storing smbpasswd in LDAP
> (works with OpenLDAP 2.0) and some import/export perl scripts.
> This does not means that Samba can read information directly
> from LDAP, but for those interested in have a cron job gernated
> the smbpasswd file from LDAP, this will work.  Also means that
> LDAP can be used to replicate smbpasswd to multiple servers :)
>
> The import script currently expects user accounts to previously
> exist containing the "objectclass=posixAccount" attribute/value
> pair.  This is not an actual requirement, but I just wanted to
> get this done quickly.  Further enhancement would be to perform a
> getpwnam() for verifying the existence of a user.

hehe :-)  Forgot to tell you where.  It's in SAMBA_2_2 in the
examples/LDAP directory.






cheers, jerry
+---------------------------------------------------------------------+
 http://www.valinux.com/     VA Linux Systems      gcarter at valinux.com
 http://www.samba.org/          SAMBA Team             jerry at samba.org
 http://www.plainjoe.org/                           jerry at plainjoe.org
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba-technical mailing list