TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mohit Shah
NA
1
1.5k
How to set email to a user in Active Directory using c#
May 8 2013 1:27 AM
I have programatically created a user in Active Directrory. I want to set email to that user. I used the following code to set email address in active directory:
UserDirectoryEntry.Properties
[
"mail"
].
Value
=
"
[email protected]
"
;
UserDirectoryEntry.CommitChanges();
At this point, the email address gets set in active directory properly. But the moment, i try to update another property for that user say for eg:
UserDirectoryEntry.Properties
[
"telephoneNumber"
].
value
=
"022-2345678"
;
UserDirectoryEntry.CommitChanges();
After this point, the email address that we set earlier to "mail" field gets replaced with
[email protected]
.
Can you please tell me why the email address is getting replaced with
[email protected]
even if i have set it to "
[email protected]
". I m using apis of activeDirectory.
Reply
Answers (
0
)
Single SignOn In Asp.net
Need To retrive Manager Email Field from AD using C#