AccountStoreCollection.NewAdamAccountStore Method (String, String, String, String, Int32, String)
Adds a new LdapDirectoryAccountStore object that represents an ADAM store to the AccountStoreCollection collection.
Namespace: System.Web.Security.SingleSignOn
Assembly: System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)
Syntax
public LdapDirectoryAccountStore NewAdamAccountStore(
string storeUri,
string displayName,
string serverName,
string baseDN,
int portNumber,
string usernameAttribute
)
public:
LdapDirectoryAccountStore^ NewAdamAccountStore(
String^ storeUri,
String^ displayName,
String^ serverName,
String^ baseDN,
int portNumber,
String^ usernameAttribute
)
member NewAdamAccountStore :
storeUri:string *
displayName:string *
serverName:string *
baseDN:string *
portNumber:int *
usernameAttribute:string -> LdapDirectoryAccountStore
Public Function NewAdamAccountStore (
storeUri As String,
displayName As String,
serverName As String,
baseDN As String,
portNumber As Integer,
usernameAttribute As String
) As LdapDirectoryAccountStore
Parameters
storeUri
Type: System.StringRequired. The uniform resource identifier (URI) for the ADAM store.
displayName
Type: System.StringThe display name for the ADAM store to add.
serverName
Type: System.StringRequired. The name of the ADAM server that contains the ADAM store.
baseDN
Type: System.StringRequired. If this parameter is specified, searches will be performed on the specified subtree. Otherwise, the entire directory tree will be searched.
portNumber
Type: System.Int32The port number to use to access this ADAM store. If this parameter is absent, the port number defaults to 389.
usernameAttribute
Type: System.StringRequired. The user name assigned as an attribute to this ADAM store.
Return Value
Type: System.Web.Security.SingleSignOn.LdapDirectoryAccountStore
The LdapDirectoryAccountStore object that represents the new ADAM store.
Exceptions
Exception | Condition |
---|---|
ArgumentException | If the collection already contains a store with the specified storeUri. |
ArgumentNullException | If any of the required parameters storeUri, serverName, baseDN, and usernameAttribute are null. |
See Also
AccountStoreCollection Class
System.Web.Security.SingleSignOn Namespace
Return to top