Questions tagged [ldif]

LDAP Data Interchange Format (LDIF) is a plain text data interchange format for LDAP data.

The LDAP Data Interchange Format (LDIF) is a standard plain text data interchange format for representing LDAP (Lightweight Directory Access Protocol) directory content and update requests. LDIF conveys directory content as a set of records, one record for each object (or entry). It represents update requests, such as Add, Modify, Delete, and Rename, as a set of records, one record for each update request.

Source

165 questions
1
vote
0 answers

How do I get perl to return xml using Net::LDAP::DSML

I'm writing a perl program to read, write, add, update and delete entries in LDAP server. What I got so far is write, add, update, delete using LDIF and read that returns entries as DSML. Now to my question - is it possible to have write, add,…
Gunnlaugur
  • 341
  • 1
  • 8
  • 19
1
vote
2 answers

LDIF - Delete Attribute IF Exists

We are using the following LDIF to remove POSIX Attributes from our LDAP Directory. This works fine, except in the case where an attribute does not exist. For e.g. it will fail if the homedirectory attribute doesn't exist. How can I make this such…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
1
vote
1 answer

Unix repeat line number for each group in file based on patern probabelly with awk

I need help with text file specific record numbering. This is ldif file and it will be about 2GB. Processing machine is unix so I typed awk. While already tried nl and cat it looks more complicated and awk looks good for this task, I'm familiar with…
jareeq
  • 311
  • 2
  • 9
1
vote
1 answer

LDAP - LDIF file? - Complete Confusion

Can someone please explain what the LDIF file on openldap is used for? Is this how you set the schema of the database? Or is this how you enter in users in your database? What do I actually have below? dn:…
KosugiNinja
  • 111
  • 1
1
vote
1 answer

ldapmodify: Invalid parameter ... specified for changetype modify

I'm using a script that is supposed to add an attribute to an LDAP record. It used to work, then we moved the LDAP server from Solaris Unix to Linux. Now the script doesn't work and throws an error The LDIF file looks like this : …
jeph perro
  • 6,242
  • 26
  • 90
  • 124
1
vote
2 answers

Import ActiveDirectory LDIF into OpenDJ/OpenDS?

I need to test a LDAP synchronization service. For that reason, I've installed OpenDJ (formerly OpenDS) LDAP server on my developer machine (ApacheDS requires admin privileges for starting/stopping a service - I don't have them & I don't get them).…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
1
vote
1 answer

LDAP olcAccess regex are not working as expected

I have a LDAP server runnign with the Structure: dc=example,dc=ldap dc=organisations o=orga1 (objectClasses top/organisation/dcObject) cn=ADMINS (objectClasses top/groupOfNames) cn=USER o=orga2 cn=ADMIN …
John
  • 11
  • 4
1
vote
1 answer

Certificate revocation list in LDAP

I need to store a Certificate Revocation List in LDAP server (OpenDJ). I have used ldapmodify command to store a certificate in the LDAP server by adding entries to LDIF files. However, I am not really sure how to go about adding a revocation list…
sunsin1985
  • 2,437
  • 5
  • 22
  • 27
1
vote
1 answer

Active Directory LDIF attributeSchema update

I have about 80 Schema Attributes I need to add to our AD. I want to input these using ldif. I have created the following ldif file with 1 attribute to add (this is on a Test AD): dn:…
chicken
  • 13
  • 3
1
vote
3 answers

How to set the password for Ldap user account?

I am using this in ldif file to set the password. dn:cn=krisv,ou=People,dc=jbpm,dc=org changetype:modify replace:unicodePwd unicodePwd:Krisv - This is the log Connecting to "localhost:389" Logging in as current user using SSPI Importing directory…
Giri
  • 931
  • 11
  • 31
  • 51
1
vote
0 answers

Error while import .LDF to AD LDS instance

I have installed the new instance by following these instructions. Now I trying to import the sample.LDF file which I have downloaded from here. But while imporing ldifde -i -f MS-Sample.LDF -s localhost:389 -j C:\Desktop\Log I am getting these…
Giri
  • 931
  • 11
  • 31
  • 51
1
vote
2 answers

Is there an alternative way to load an LDIF besides ldapadd/ldapmodify?

I get an error when using ldapadd and ldapmodify. The ldapsearch is also not working right now. I think it's an issue with BDB indexing. $ ldapadd -Wx -D "cn=Manager,o=DIR" -f SC_TRANSPORT.ldif Enter LDAP Password: ***** adding new entry…
1
vote
0 answers

How to parse LDAP Data Interchange Format string in .NET?

Say, I have a LDIF string as such: CN=Subject Name, OU=Company, O=Subject Name, STREET=Main St, STREET=123, L=City, S=WA, PostalCode=98001, C=US Is there any framework method to parse it into its constituent components with C#?
ahmd0
  • 16,633
  • 33
  • 137
  • 233
1
vote
1 answer

Generating Ldifs with Help from AWK (can't parse input file)

Folks I need to add a serie of entries on an ldap based on a 10k records list. I have the following code: awk -v uid=999905284 ' { print "dn: uid="$0",ou=aaa,ou=bbb,dc=br\n uid: "$0"\n sn: "$0"\n cn: "$0"\n mail: "$0"@grupos.a.br\n description:…
vfbsilva
  • 135
  • 8
1
vote
1 answer

Querying LDAP Server Where LDAP Structure Not Known

I am developing in Java using Spring for my company. We are developing an application that we have a local LDAP server. The LDAP server will be used to fetch information. However, we do not want the user of the application to know the LDAP…
user1646481
  • 1,267
  • 6
  • 21
  • 29