[Samba-it] aggiungere utenti da usrmgr.exe

johon Doe johond at yahoo.com
Tue Jan 17 10:57:02 MST 2006


Salve,
stavo cercando di usare usrmgr.exe di nt per
aggiungere utenti al mio server pdc su ldap, ma ho
qualche problema.
Il problema è nel log:
[2006/01/17 10:46:34, 2]
passdb/pdb_ldap.c:init_group_from_ldap(2199)
  init_group_from_ldap: Entry found for group: 1001
[2006/01/17 10:46:34, 0]
passdb/pdb_ldap.c:ldapsam_add_sam_account(1980)
  ldapsam_add_sam_account: User 'xxx' already in the
base, with samba attributes
[2006/01/17 10:46:34, 0]
rpc_server/srv_samr_nt.c:_samr_create_user(2377)
  could not add user/computer xxx to passdb.  Check
permissions?

questo è quello che ottengo se tento di aggiungere un
utente, l'utente viene poi addato ma usrmgr mi ritorna
un errore di "accesso negato".
Le seguenti sono linee in global di smb.conf che si
riferiscono alla gestione degli utenti.

[global]
add user script = /usr/sbin/smbldap-useradd -a -m "%u"
delete user script = /usr/sbin/smbldap-userdel %u
delete user from group script =
/usr/sbin/smbldap-groupmod -x "%u" "%g"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod
-m "%u" "%g"
add machine script = /usr/sbin/smbldap-useradd -g
machines -d /dev/null -s /bin/false -c"Added by
smb.conf" "`echo "%u" |tr '[:upper:]' '[:lower:]'`"
set primary group script = /usr/sbin/smbldap-usermod
-g "%g" "%u"

se uso smbldap-useradd a mano non ho problemi.
Ciao
Luigi.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the samba-it mailing list