[Samba] Re: Windows User Admin Tool error

rruegner robert at ruegner.org
Mon Nov 1 16:58:43 GMT 2004

Jim C. schrieb:
>>> I've also been trying to get these tools to work for as long as I've 
>>> been messing with Samba (5-6 years now?) and no dice.   What are the 
>>> requirements for this to function?  I always get "A device attached 
>>> to the system is not functioning" when I try to use user manager for 
>>> domains.
>>> Jim C.
>> Hi srvmgr and usmgr work , but i do not recommand to use srvmgr...but 
>> it works
> What would you recommend instead?
>> depending to your pass auth ( ldap...smppasswd ) you have to set
> I'm using LDAP as a backend.
>> the right parameters in smb.conf as well as for srvmgr wiht the add 
>> share parameter and a script included in samba sources
>> http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/AdvancedNetworkManagement.html#id2576258 
> Can you be more specific or point me to a HOWTO? This link does not 
> cover anything other than where to find the tools which I've already 
> got. I even have hard copy of the Official Samba HOWTO and even that 
> does not adequately cover the topic.
> Anyway, thanks,
> Jim C.

Hi Jim,
usrmgr will work right out of the box with samba
if you have something like this with ldap in your smb.conf
passdb backend = ldapsam:"ldap://"
    ldap admin dn = cn=Manager,dc=robo,dc=intern
    ldap suffix = dc=robo,dc=intern
    ldap group suffix = ou=Groups
    ldap user suffix = ou=Users
    ldap machine suffix = ou=Computers
    ldap idmap suffix = ou=Users
    ldap ssl = no
    add user script = /usr/local/sbin/smbldap-useradd.pl -a -m -P "%u"
    ldap delete dn = Yes
    delete user script = /usr/local/sbin/smbldap-userdel.pl -r "%u"
    add machine script = /usr/local/sbin/smbldap-useradd.pl -w "%u"
    add group script = /usr/local/sbin/smbldap-groupadd.pl -p "%g"
    delete group script = /usr/local/sbin/smbldap-groupdel.pl "%g"
    add user to group script = /usr/local/sbin/smbldap-groupmod.pl -m 
"%u" "%g"
    delete user from group script = /usr/local/sbin/smbldap-groupmod.pl 
-x "%u" "%g"
    set primary group script = /usr/local/sbin/smbldap-usermod.pl -g 
"%g" "%u"
    passwd program = /usr/local/sbin/smbldap-passwd.pl "%u"

you can also use srvmgr with this

add share command = 
         change share command = 
         delete share command = 

you may have different paths on your distro
but modify_samba_config.pl makes your smb.conf lokking a little bit 
strange thats why i said i dont recommend this, for me edit
smb.conf for configure shares is the better way, but srvmgr works
dont forget to start usrmgr and srvmgr as a Domain Admin account user


More information about the samba mailing list