HP UX LDAP-UX Integration Software manual Examples

Page 49

Command and Tool Reference

LDAP Directory Tools

 

Refer to the ldapentry(1) man page for more detailed information.

 

Examples

 

The following configuration variables are defined in the user's

 

configuration file as ~/.ux_ldap_admin_rc:

 

LDAP_BINDDN="cn=Directory Manager"

 

LDAP_HOST=”myhost

 

The Command

 

ldapentry -a passwd UserA

 

will try to bind to the directory on server myhost as Directory Manager,

 

prompt for the credentials, and retrieve the service search descriptor

 

from the profile LDIF file based on the service name passwd. It will then

 

open the template file with the editor defined by the environment

 

variable EDITOR and collect the input to pass it to ldapmodify to add the

 

new entry.

 

The Command

 

ldapentry -m "uid=UserA, ou=People, o=hp.com"

 

will try to bind to the directory on server myhost as Directory Manager,

 

prompt for the credentials, and use the entered DN to retrieve the entry

 

from the directory.

 

It will then populate a template with the retrieved information, and

 

collect the changes to pass to ldapmodify for execution.

 

 

NOTE

Although the ldapentry tool will allow the users to modify any

 

information on the EDITOR window, the directory server has the final

 

decision on accepting the modification. If the user makes an invalid

 

LDIF syntax, violates the directory’s schema or does not have the

 

priviledge to perform the modificaiton, the ldapentry tool will report the

 

error after the EDITOR window is closed when it tries to update the

 

directory server with the information. The user will be given the option

 

to re-enter the EDITOR and correct the error.

 

 

Chapter 3

43

Image 49
Contents Manufacturing Part Number J4269-90054 E0606 EditonLegal Notices Contents Glossary Index Publishing History Intended AudienceWhat’s in This document Command and Tool Reference Use this chapter toHP Encourages Your Comments Overview of NIS+ to Ldap Migration Overview Documentation References Overview of the LDAP-UX Integration Product Ldap Directory Server and LDAP-UX Client ServicesFeature Comparison Between Ldap and NIS+ Comparing Features and Security Between LDAP-UX and NIS+Security Comparison Between LDAP-UX and NIS+ Features Comparison between Ldap and NIS+Security Comparison between LDAP-UX and NIS+ NIS+ with Security Coexisting with Trusted ModeTrusted Mode Sharing Comparing Ldap and NIS+ InformationSimplified NIS+ Environment Simplified LDAP-UX Client Services Environment How LDAP-UX Client Services WorkComparing Ldap and NIS+ Information Sharing Ldap Administrator ‘s Tools Description LDAP-UX Client Administrator’s Tools Migration ScriptsNIS+ to Ldap Migration Tools Description Tool Description NIS+ to Ldap Migration ToolsOverview of NIS+ to Ldap Migration Before You Begin Migrating NIS+ to LdapBefore You Begin Summary of Migration Steps Migrating NIS+ Service Data to the Ldap ServerStep Migrating NIS+ Clients to LDAP-UX Client Services Installing Netscape Directory Server Installing and Configuring Your Ldap Directory ServerConfiguring Netscape Directory Server Installing the LDAP-UX Integration Product ONC EP/NCF Software Requirement Installing ONC EP/NCF Software and AutoFS 2.3 PatchSeptember AutoFS Patch Requirement Chapter Publickey Schema Publickey and Automount SchemasFollowing shows the new automount schema in the Ldif format Automount SchemaImporting Your NIS+ Data to Your Ldap Directory Server Steps to Import Your NIS+ Data into Your Directory Server and placed into a Ldif formatted file Importing Your NIS+ Data to Your Ldap Directory Server Migrateallnisplusonline.sh Enter the manager DN Configuring LDAP-UX Client Services Automount files ldap Configure the LDAP-UX Client Services, see the Configure Configuring LDAP-UX Client Services Verify LDAP-UX Client Services Ll /tmp Ls -l Verify LDAP-UX Client Services Chapter Syntax Ldappasswd CommandExamples Ldap Directory ToolsLdapentry Syntax LdapscopeExamples Ldapsearch Ldapmodify Ldapdelete NIS+ to Ldap Migration ScriptsMigrates groups Migrates all user General Syntax For Migration Scripts Environment VariablesNaming Context Default Naming ContextNIS+ Map Name Location in the Directory Tree NisMapName=mapname Non-standard mapa Migrating The Credential TableMigrating Most of Service Data Using One Script Migrating Individual Service Data Migrating User-Defined Maps NIS+ to Ldap Migration Scripts NIS+ to Ldap Migration Scripts Following shows the nispautomap.ldif file NIS+ to Ldap Migration Scripts Chapter Ldap Data Interchange Format Ldif GlossaryNetwork Information Service Plus NIS+ Glossary Index Symbols
Related manuals
Manual 214 pages 54.35 Kb Manual 26 pages 60.39 Kb