Setting LDAP_SERVER_PERMISSIVE_MODIFY_OID to allow empty values in AD

2008-12-03 Thread A. Farber
Hello, I have a script which reads phone numbers from a CSV file and stores them in Active Directory (w2k3), so that you can find a user phone number in the address book of Exchange. I get error messages: "comment: Error in attribute conversion operation, data 0, vece" which I can get rid of only

Bad filter in Active Directory: (!company=mycompany)

2008-10-24 Thread A. Farber
Hello, I've written a short script to prepend "ext-" to mail addresses of all external colleagues in Microsoft Active Directory: filter => '(&(objectCategory=Person)(objectClass=User))', $mail = "ext-$mail" if $entry->get_value('company') !~ /mycompany/i && $mail

Force the new AD user to change password - pwdLastSet

2008-07-11 Thread A. Farber
Hello, does anybody please know how set the checkbox "User must change password at next logon" for a new user in Active directory? In VBScript it is done by: obj.Put "pwdLastSet", 0 but I can't find the Net::LDAP counterpart for that (and I can't use Win32::OLE because my script runs on Linux) A