perl - How do I modify a Boolean LDAP Active Directory attribute using Net::LDAP? -



perl - How do I modify a Boolean LDAP Active Directory attribute using Net::LDAP? -

i can bind advertisement ldap, , modify , create objects.

however, if want update or set attribute of type 'boolean', error:

00000057: ldaperr: dsid-0c090c3e, comment: error in attribute conversion operation, info 0, v1db1

here piece of perl code responsible:

$rv = $ldap->add($dn, attr=> [ cn => [$u], objectclass => [ 'top','person', 'organizationalperson', 'contact' ], displayname => "$u mailing list", mail service => $email, name => $u, mailnickname => $local, proxyaddresses => [ "smtp:$email", "smtp:$local\@$serverdom", ], givenname => $u, targetaddress => "smtp:$email", internetencoding => 1310720, msexchaddressbookflags => 1, msexchmoderationflags => 6, msexchprovisioningflags => 0, msexchhidefromaddresslist => 'true', msexchbypassaudit => 'false', msexchmailboxauditenable => 'false',

]);

the problem 3 lastly attributes; if commented out, works. have tried using 0 , 1 instead of 'true' , 'false' same issue. seems net::ldap code calls convert::asn1 type of string or int incorrect; should using 'boolean', cannot see how create this.

according ldap specification; string values of "true", "true", "true", etc valid.

unknown attributes, or attributes not available user throw 'error in attribute conversion operation' errors.

looking @ attributes , googling them shows msexchhidefromaddresslist should msexchhidefromaddresslists <- note plural s.

perl active-directory ldap netldap

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -