Chat now with support
Chat with Support

Safeguard for Sudo 2.0 - Administrators Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Introducing Privilege Manager for Sudo Planning Deployment Installation and Configuration
Download Privilege Manager for Unix Software Packages Download Privilege Manager for Sudo Software Packages Quick Start and Evaluation Configure a Primary Policy Server Configure a Secondary Policy Server Install PM Agent or Sudo Plugin on a Remote Host Remove Configurations
Upgrading Privilege Manager 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 Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager Variables Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures Privilege Manager Programs Installation Packages Unsupported Sudo Options Sudo Plugin Policy Evaluation About us

ldap_get_attributes

Syntax
list ldap_get_attributes(int ldapid, ldapentry entry[, boolean trace] )
Description

ldap_get_attributes returns the full list of attribute names in an ldapentry returned by a previous call to ldap_first_entry or ldap_next_entry.

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

Example
allattributes=ldap_get_attributes(ldapid, entry); 
if (selected_attribute in allattributes) { 
   #process matching attribute 
} 
Related Topics

ldap_get_dn

ldap_get_dn

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

ldap_get_dn returns the DN of the specified entry, as a string. ldapentry is a valid entry returned by a previous call to ldap_first_entry or ldap_next_entry.

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

Example
dnstr=ldap_get_dn(ldapid,entry;
Related Topics

ldap_get_values

ldap_get_values

Syntax
list ldap_get_values(int ldapid, ldapentry entry, string attr[, boolean trace] )
Description

ldap_get_values returns a list of values for the specified attribute from the given LDAP entry.

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

Example
values=ldap_get_values(ldapid, entry, "uid"); 
if (user !in values) { 
   reject "You are not authorized"; 
} 
Related Topics

ldap_next_attribute

ldap_next_attribute

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

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

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_next_entry

Related Documents