Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help
in Search

How do I create a user and attributes using SDS.P?

Last post 08-20-2008, 3:46 PM by joe. 1 replies.
Sort Posts: Previous Next
  •  08-20-2008, 1:42 PM 4465

    How do I create a user and attributes using SDS.P?

    When using SDS.P to create users and their attributes on an ADAM server, is there a way to perform a single SendRequest() call on my LdapConnection? From looking through examples on the Microsoft site, I only see a single DirectoryRequest object in each SendRequest() call. But I assume there is a way to set up the information in advance and then submit one SendRequest on my LdapConnection to create the user an all their attributes in one shot. Can anyone elaborate on how this could be done?

    Just to clarify: I'm not referring to multi-valued attributes. I need to create a user and then add in all the different user attributes, like displayName, employeeID, sn, givenName, etc. I would like to add all these attributes in a single SendRequest() call if possible.

    Thanks for any suggestions.

    -Dave

  •  08-20-2008, 3:46 PM 4467 in reply to 4465

    Re: How do I create a user and attributes using SDS.P?

    Did you look at the article I pointed you to:

    http://msdn.microsoft.com/en-us/library/bb332056.aspx#sdspintro_topic4

    It shows a sample of creating an object with the AddRequest class specifying an array of DirectoryAttribute objects containing the attributes you want to set.  That is pretty much the whole key to it.

View as RSS news feed in XML