I imagine this is a trivial question, but I've not managed to find an answer for it anywhere.

I'm trying to create a user on MS-ADAM (or AD, probably doesn't matter). One of the attributes I'm trying to set is msDS-UserAccountDisabled, which I want to set to false. Unfortunately I have completely failed to work out the syntax - I always get

Create User 00000057: LdapErr: DSID-0C090AB7
, comment: Error in attribute conversion operation, data 0, vece


Here's my code:

my $msg = $ldapConn->add( $dn, attrs => [
 sAMAccountName => $newUserId,
 distinguishedName => $dn,
objectCategory => "CN=Person,CN=Schema,CN=Configuration,CN={39037770-0E29-491C-8F43-0ED46D1C92E0}",
 msDS-UserAccountDisabled => FALSE
 ] );

I've tried FALSE, "FALSE", "false", "0", 0, false, and I can't think of any more to try.

Would some kind soul be able to tell me what I should be using?

cheers,
clive

Reply via email to