search for: mod_replace

Displaying 4 results from an estimated 4 matches for "mod_replace".

Did you mean: do_replace
2015 May 06
2
Using ldap to check last password modification date
Thanks Rowland. That makes sense :-) BTW, Is the following code enough to change the password with python-ldap? con.sasl_interactive_bind_s("", sasl_auth) mod_attrs = [ (ldap.MOD_REPLACE, 'unicodePwd', new_password), (ldap.MOD_REPLACE, 'unicodePwd', new_password) ] con.modify_s('CN=%s,CN=Users,DC=lxc,DC=com % username, mod_attrs) Thanks! Regards, Norberto 2015-05-06 4:32 GMT-03:00 Rowland Penny <rowlandpenny at googlemail.com>: > On 05/05/15 2...
2015 May 05
2
Using ldap to check last password modification date
Hello, For a portal I'm working on, I need to know if changing the unicodePwd attr with LDAP also updates pwdLastSet (so the account doesn't get locked). It seems the answer is yes, but the value I get from pwdLastSet is somewhat weird: pwdLastSet: 130753269490000000 That is Wed, 08 Jun 2011 11:31:34 GMT Why? Is that epoch or something else? Is there anything else I need to update when
2015 May 07
0
Using ldap to check last password modification date
On 06/05/15 15:59, ?? wrote: > Thanks Rowland. That makes sense :-) > > BTW, Is the following code enough to change the password with python-ldap? > > con.sasl_interactive_bind_s("", sasl_auth) > mod_attrs = [ > (ldap.MOD_REPLACE, 'unicodePwd', new_password), > (ldap.MOD_REPLACE, 'unicodePwd', new_password) > ] > con.modify_s('CN=%s,CN=Users,DC=lxc,DC=com % username, mod_attrs) > > > Thanks! > > Regards, > Norberto > > > > 2015-05-06 4:32 GMT-03:00 Rowland Penn...
2014 Feb 04
1
How to change objectSid?
Hi, I'm trying to modify the objectSid of a group using python-ldap. I've found that I need a server control to do it but doesn't work. The code that I'm using: modlist = [ (ldap.MOD_REPLACE, 'objectSid', s3sid_packed) ] LDB_CONTROL_PROVISION_OID = "1.3.6.1.4.1.7165.4.3.16" LDB_CONTROL_RELAX_OID = "1.3.6.1.4.1.4203.666.5.12" controls = [ LDAPControl(LDB_CONTROL_PROVISION_OID, criticality=0), LDAPControl(LDB_CONTROL_REL...