Previous Topic: CreateTrustedHost Method—Creates Trusted Host Object

Next Topic: CreateWSFEDAuthScheme Method—Creates WS-Federation Authentication Scheme

CreateUserDir Method—Creates User Directory Object

The CreateUserDir method creates and configures a user directory object.

Syntax

The CreateUserDir method has the following format:

Netegrity::PolicyMgtSession‑>CreateUserDir(dirName, namespace, server[, ODBCQueryScheme][, domDesc][, searchRoot][, usrLookStart][, usrLookEnd][, username][, password][, searchResults][, searchScope][, searchTimeout][, secureConn][, requireCreds][, disabledAttr][, UIDAttr][, anonID][, pwdData][, pwdAttr][, emailAttr][, chalRespAttr])

Parameters

The CreateUserDir method accepts the following parameters:

dirName (string)

Specifies the user directory object's name.

namespace (string)

Specifies the user directory's namespace:

Specifies one of the following directory-dependent values:

LDAP and AD

Specifies the IP address and port number of the LDAP server.

Syntax: IP_address:port_number

Note: The default port number is 389.

ODBC

Specifies the data source name.

WinNT

Specifies the domain name.

Custom

Specifies the name of the library that corresponds to the custom directory.

ODBCQueryScheme (PolicyMgtODBCQueryScheme object)

(Optional) Specifies a set of queries that SiteMinder uses to query the ODBC directory.

Note: If the user directory is not an ODBC directory, this parameter's value is undef.

domDesc (string)

(Optional) Specifies the description of the user directory.

searchRoot (string)

(Optional) Specifies one of the following directory-dependent values:

LDAP

Specifies the location in the LDAP tree that is the starting point for the directory connection, for example, the organization (o) or organizational unit (ou). This location, called the search root, is the point where the Policy Server starts the search for a user.

Note: For more information about this parameter, see the parameter searchScope.

Custom

Specifies a string of parameters to pass to the custom library.

usrLookStart (string)

(Optional) Specifies the start value for a user DN lookup in an LDAP directory.

usrLookEnd (string)

(Optional) Specifies the end value for a user DN lookup in an LDAP directory.

Note: Specifying values for the user DN lookup starting point and endpoint allows users to enter part of the DN string when authenticating. In the following example, the user only needs to specify the string "JSmith" and not the whole DN string when logging in:

Return Value

The CreateUserDir method returns one of the following values: