[Samba] smbldap-tools and phpldapadmin

Dimitri Yioulos dyioulos at firstbhph.com
Sat Jan 15 13:15:38 MST 2011


I suspect this is OT, or a solution may have been posted.  Either way, I beg your

While I've used Samba for quite a few years, I recently took a stab at using it in an
organization I volunteer at to create a PDC, in conjunction with openldap.  The good
news is it works, for the most part, after some set-up struggles.  I have a couple of
remaining issues, but let me take them one-at-a-time.

Here some basic info on my set-up:

CentOS 5.5 x86_64
stock RPM-based installs of:

I've used the smbldap-tools suite to 1) populate ldap, and; 2) to create users and
machines.  This seems to work fine.

I've also installed PhpLdapAdmin, as my users are not command line savvy.  I want them
to use that tool to create new users and machines.  Here's the issue:

If I enter the command "smbldap-useradd -a -m -M juser -g "Domain Users" -G "Domain
Admins" -G "Administrators" -c "Joe User" juser" (beginning and ending parens for
clarity), I do indeed create the type of user I'm trying to create.  And, that user
appears in the list of users in PhpLdapAdmin.

However, if I create the same type of user using the PhpLdapAdmin "Samba3 Account"
template, the user doesn't have the same attributes as the ones created via smbldap-useradd.

I could probably create a bash script that invokes smbldap-useradd for my users to use
to create accounts, but they're CLI-phobic, so I really want to get PhpLdapAdmin to do this.

How can I accomplish this PhpLdapAdmin/smbldap-useradd "integration?  I'm really not a
programmer, so messing with the PhpLdapAdmin xml files is daunting to me if, in fact,
this is how it's done.  I've looked through all of the config files associated with the
PDC set-up, but simply don't see anything in them that would do the trick.

If anyone has accomplished this, I would greatly appreciate your help!



This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the samba mailing list