Setting Boolean attributes using LDP

Quick and gentle reminder.  LDP expects you to replace a Boolean attribute with either TRUE or FALSE.  True, False, true or false don’t cut it…

If you try and use True, False, true or false you’ll get this error:

***Call Modify…
ldap_modify_s(ld, ‘CN=Ross\, Barney,OU=Executive,OU=Departments & Functions,DC=corp,DC=tailspin-toys,DC=com’,[1] attrs);
Error: Modify: Invalid Syntax. <21>
Server error: 00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece
Error 0x57 The parameter is incorrect.

If you use TRUE or FALSE all is well:

***Call Modify…
ldap_modify_s(ld, ‘CN=Mauser\, Trent,OU=Executive,OU=Departments & Functions,DC=corp,DC=tailspin-toys,DC=com’,[1] attrs);
Modified “CN=Mauser\, Trent,OU=Executive,OU=Departments & Functions,DC=corp,DC=tailspin-toys,DC=com”.


About Paul Williams

IT consultant working for Microsoft specialising in Identity Management and Directory Services.
This entry was posted in Active Directory, Troubleshooting and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s