sc_ldap_login
|
|
$ldapConn = sc_ldap_login($server [, $domain, $user, $password, $dn, $group]);
This macro initiates the connection and bind it to the user credentials. This macro needs the following parameters:
Server = Domain = User = Password = DN = Group =
There are three possible returns:
| Macro return |
Situation |
| (string)'ldap_connect_error' |
Connection error with LDAP host/service. |
| (string)'ldap_bind_error' |
Authentication error after successful connection. |
| (resource) |
Successful connection and bind. |
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
| allMacros
|
allMacros onApplicationInit onValidate
|
allMacros
|
allMacros
|
allMacros onApplicationInit onValidate
|
allMacros onApplicationInit onValidate
|
allMacros
|
allMacros
|
allMacros
|
|