go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Sample ldapmodify LDIF file -- Adding value(s)
 
Subject: Sample ldapmodify LDIF file -- Adding value(s)
Author: eLDAP
In response to: LDAP Command-Line Tool - ldapmodify examples with sample ldif files
Posted on: 07/08/2011 09:25:21 PM


dn: uid=user.01,ou=people,dc=example,dc=com
changetype: modify
add: title
title: HR manager
title: Director of operation
title: VP sales


The changetype is classified as modify-add and loading this LDIF file is going to add the values listed to the given attribute title, creating the attribute if necessary.


 

> On 07/08/2011 09:22:50 PM eLDAP wrote:

Use the command-line tool ldapmodify to modify existing entries. ldapmodify opens a connection to the directory and authenticates the user. Then it opens the LDIF file supplied as an argument and modifies the LDAP entries specified by the file.

ldapmodify uses a modified form of an LDIF file. Within the file itself, you use the attribute changetype to specify the type of change.

Syntax
ldapmodify [options] [-f LDIF-filename]

Example
ldapmodify -h localhost -p 389 -D "uid=testuser" -w password -f changes.ldif






References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.