Chatee ahora con Soporte
Chat con el soporte

Privilege Manager for Unix 7.3 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

ldap_count_entries

Syntax
int ldap_count_entries(int ldapid, ldapresult searchresult[, boolean trace] )
Description

ldap_count_entries returns the number of LDAP entries found by a previous call to ldap_search.

If the optional trace parameter is set to true, any errors or warnings from the LDAP function are written to stdout.

Example
# search for all Users at base level 
searchresults= ldap_search( ldapid, 'ou=Users,dn=ldap,dn=domain,dn=com', 
   'onelevel', '(objectClass=*)' ); 
if (ldap_count_entries(ldapid, searchresults) == 0) 
{ 
   reject "Found no users"; 
}
Related Topics

ldap_dn2ufn

ldap_dn2ufn

Syntax
string ldap_dn2ufn(string dnstr[, boolean trace])
Description

ldap_dn2ufn converts a DN formatted string to a more user friendly format returned as a string.

If the optional trace parameter is set to true, any errors and warnings from the LDAP function are written to stdout.

Example
ufn=ldap_dn2ufn("uid=jsmith,ou=Users,dn=directory,dn=ourdomain,dn=com"); 
print(ufn); 

#prints the output: 
#jsmith, Users, directory, ourdomain, com
Related Topics

ldap_explode_dn

ldap_explode_dn

Syntax
list ldap_explode_dn(string dnstr [, boolean noTypes[, boolean trace]] )
Description

ldap_explode_dn returns a list of strings composed of the elements of the specified DN. If the optional noTypes parameter is set to true, the types are stripped from the exploded values. The default for noTypes is false.

If the optional trace parameter is set to true, any errors or warnings from the LDAP function are written to stdout.

Example
dnlist=ldap_explode_dn("uid=jsmith,ou=Users,dn=directory,dn=ourdomain,dn=com"); 
stripped=ldap_explode_dn("uid=jsmith,ou=Users,dn=directory,dn=ourdomain,dn=com"); 
print(dnlist); 
print(stripped); 

#prints the following output 
#{ uid=jsmith ou=Users dn=directory dn=ourdomain dn=com} 
#{jsmith, Users, directory, ourdomain, com}
Related Topics

ldap_first_attribute

ldap_first_attribute

Syntax
string ldap_first_attribute(int ldapid, ldapentry entry[, boolean trace] )
Description

ldap_first_attribute returns the first attribute name in the ldapentry returned by a previous call to ldap_first_entry or ldap_next_entry.

If not present, returns an empty string. If the optional trace parameter is set to true, any errors or warnings from the LDAP function are written to stdout.

Example
str=ldap_first_attribute(ldapid, entry); 
while (length(str) > 0) { 
   #process attribute 
   … 
   str=ldap_next_attribute(ldapid, entry); 

} 
Related Topics

ldap_get_attributes

Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación