Click or drag to resize
ApplicationGetUserPrincipalName Method DataPA OpenAnalytics
DataPA OpenAnalytics API Reference
Saearches LDAP for the User Principal name using the given name (e.g. searching 'paul' would return paul@datapa.local)

Namespace: DataPA.Utils.QueryEngine
Assembly: DataPAQueryEngine (in DataPAQueryEngine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Object GetUserPrincipalName(
	string searchUserName,
	string domain,
	string ldapUsername,
	string ldapPassword,
	string path
)

Parameters

searchUserName
Type: SystemString
The username to search with
domain
Type: SystemString
ldapUsername
Type: SystemString
The username to which to connect to LDAP
ldapPassword
Type: SystemString
The password for [!:ldapUsername]
path
Type: SystemString
LDAP path

Return Value

Type: Object
A unique user principal name, as used in the ServerSecurity.Users collection as the user name
See Also