ADModify.net syntax errors when modifying an attribute in Server 2008 x64.

Hi guys,

I am trying to remove some unwanted values from peoples AD accounts due to a botched migration of user data from Server 2003 32bit to Server 2008 64bit.

(I am afraid I don't currently have answers for how or what was used to migrate the user data as consultants were brought in for the whole job)

I am using ADModify.net v.2.1

I have used AdModify.net in the past to successfully bulk modify AD records but I am not having any luck with this task on the new servers.

I am doing a custom query for the value 'dn' which has polluted the 'ipPhone' attribute of peoples AD records. It is successfully returning all the expected accounts but when I try to remove the value but putting a tick in the box next to the ipPhone attribute, leaving the value field blank and update the changes, I get the following error with every user account I have selected to modify.

<user message="ADMODIFY.ERR - The attribute syntax specified to the directory service is invalid. " attribute="ipPhone" type="Failure" UserDN="LDAP://CN=Joe Blogss,OU=Staff,OU=Domain Users,DC=company,DC=local"/>

Open in new window


I cant have a blank 'ipPhone' attribute??

Or is there some other security restriction I am not aware of that is preventing ADModify from making the changes?
defectaAsked:
Who is Participating?
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
You cannot leave field blank to clear its value. There is special value needed to place there :)
Check what will happen if you place there null as the new value :D

That's the way to clear attributes in ADModify.net

Regards,
Krzysztof
1
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
You have an attribute Iphone in AD on user properties ?
What value are you trying to provide and what doe sit does ?

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Hope you are using the Custom tab to make changes to this custom Attribute :)

- Rancy
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
defectaAuthor Commented:
Thanks or the heads up folks. I had no idea it was a custom attribute. It was just an attribute that existed on the old accounts and has been imported to the new servers.

On the telephone tab for AD user accounts there is a field called IP Phone, which we have been using to record the users Skype account name.

I have a VB script the runs at login which generates the company signature using their AD account attributes. EG, title, dept, address, phones etc.

Since the migration some genius has put the value 'dn' in a lot of black fields which has meant that the signature script is giving people Skype addresses of 'dn' when it should even be added to their signature if it was blank like I intended.

I will check out this Custom tab you speak of now.
0
 
defectaAuthor Commented:
yeah, that custom tab doesn't apply to this situation.

custom tab
As you can see by the explanation in the Custom tab above, that isn't going to work because the attribute already exists on the Telephone tab. See below.

telephone tab.
Any other ideas people?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
We need to use the Custom ... if you could share a screen of users tab for Iphone :)

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Attribute Value – “null” (TYPE null without quotes)

http://restartis.wordpress.com/2009/05/14/multiple-users-with-legacyexchangedn-set-to-adcdisabledmail/

- Rancy
1
 
defectaAuthor Commented:
Thank you! That worked.

( RTFM?! =P )
0
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
You're welcome :)

Krzysztof
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.