search for: userldif

Displaying 3 results from an estimated 3 matches for "userldif".

2016 Aug 05
2
How to modify user fields with a command line ?
2016-08-04 17:49 GMT+04:00 Rowland Penny <rpenny at samba.org>: > On Thu, 4 Aug 2016 16:44:34 +0400 > henri transfert <hb.transfert at gmail.com> wrote: > > > Hi, > > > > On RSAT , we can see that there are some extra fields for users > > account like description, office, phone number or email address. > > > > I already have hundreds of
2016 Aug 05
0
How to modify user fields with a command line ?
...> Am I on the right way ? > > If yes , where can I find the exact syntax of this special form of > LDIF format ? > > Thanks in advance > > Henri Well you could it that way, your ldif format looks correct, but I would use variables for the username and email address i.e USERLDIF="dn: CN=$USER,OU=myOU,DC=mydom,DC=foo,DC=fr changetype: modify add: mail mail: $EMAIL" echo "$USERLDIF" | ldbmodify -H samba_home/private/sam.ldb Wrap this in some form of loop and drag the required info in from an array or csv Rowland
2015 Dec 30
4
Allow self password change using LDAP(s) with Samba4
Hi all I am trying to create a webapp to allow users to change their own passwords in Samba4 (perhaps, also in AD), using LDAP(s). But when I try to modify the user password using this code: dn: ........ changetype: modify replace: unicodePwd unicodePwd: "Temporal2" I get this error: 0x32 (Insufficient access; error in module acl: insufficient access rights during LDB_MODIFY (50))