Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 24, 2011 08:36 AM by saedshaar1
0 Points
4 Posts
Jun 25, 2010 10:38 AM|LINK
Hi.
I try to save user data in AD in extensionAttribute4 but I got and error: The attribute syntax specified to the directory service is invalid
There is no problem when I save data into properties like: "SN" or "Mobile"
I use code below:
public void SaveUserNotes(SearchResult user, string aboutMe) { DirectoryEntry de = new DirectoryEntry(ADpath, ADUserName, ADUserPassword); DirectorySearcher search = new DirectorySearcher(de); DirectoryEntry dataToUpdate = user.GetDirectoryEntry(); dataToUpdate.Properties["extensionAttribute4"].Value = aboutMe; dataToUpdate.CommitChanges(); dataToUpdate.Close(); }
All-Star
23648 Points
4050 Posts
Jun 25, 2010 01:14 PM|LINK
Check if it's a text attribute and what size it has.
Member
138 Points
32 Posts
Jul 24, 2011 08:36 AM|LINK
I am facing the same issue, only the extensionAttribute's are not updating!
How did you solve it?
Shock777
0 Points
4 Posts
Save data into extensionAttribute in Acitve Directory
Jun 25, 2010 10:38 AM|LINK
Hi.
I try to save user data in AD in extensionAttribute4 but I got and error: The attribute syntax specified to the directory service is invalid
There is no problem when I save data into properties like: "SN" or "Mobile"
I use code below:
public void SaveUserNotes(SearchResult user, string aboutMe) { DirectoryEntry de = new DirectoryEntry(ADpath, ADUserName, ADUserPassword); DirectorySearcher search = new DirectorySearcher(de); DirectoryEntry dataToUpdate = user.GetDirectoryEntry(); dataToUpdate.Properties["extensionAttribute4"].Value = aboutMe; dataToUpdate.CommitChanges(); dataToUpdate.Close(); }Can anyone tell me how to save data into extensionAttibute in AD ?
smirnov
All-Star
23648 Points
4050 Posts
Re: Save data into extensionAttribute in Acitve Directory
Jun 25, 2010 01:14 PM|LINK
Check if it's a text attribute and what size it has.
saedshaar1
Member
138 Points
32 Posts
Re: Save data into extensionAttribute in Acitve Directory
Jul 24, 2011 08:36 AM|LINK
I am facing the same issue, only the extensionAttribute's are not updating!
How did you solve it?
<div style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;" id="_mcePaste" class="mcePaste"></div>