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
0
votes
2 answers

how to split ldif in smaller files using python?

Given a ldif file with 999 of records to be updated with ldapmodify, how can i split it in smaller files? https://stackoverflow.blog/2011/07/01/its-ok-to-ask-and-answer-your-own-questions/
RASG
  • 5,988
  • 4
  • 26
  • 47
0
votes
1 answer

ldapdelete: invalid option -- 'r'

I have a problem in the execution of the recursive ldapdelete -r command, when I connect to an ldap virtual machine that I have as root and execute the command ldapdelete -r -h ip -p 389 -D "cn=admin,o=ms,c=fr" -w Ap201 -f /tmp/ldapContextes >>…
0
votes
1 answer

Display Attributes in User Properties in Active Directory

Is it possible to display the hidden attribute, EmployeeID or EmployeeNumber under the General Tab in a user's Active Directory Account? If so, how.....
Michael
  • 1
  • 1
0
votes
1 answer

Remove\Change specific attributes in LDIF using vscode

I am exporting an LDAP database into an LDIF, and I need to clean it up a bit. There are some attributes that I no longer want. If it is a one-line attribute it is simple: # Entry 23: cn=dwhite,ou=ORG1,o=Root dn:…
0
votes
1 answer

jenkins with ldap : Test LDAP settings show two groups for user

LDAP side: I have associated users to groups with gidNumber. Example for group and users as part of my ldif file: dn: cn=jenkins-administrators,ou=Groups,dc=example,dc=com objectClass: posixGroup cn: jenkins-administrators gidNumber: 5000 dn:…
user2302639
  • 368
  • 1
  • 2
  • 12
0
votes
1 answer

python-ldap: How to fix b'ldapadd: invalid format (line 1) entry: ""\n'

I want to create an ldap test server. So I dumped the ldap data with ldapsearch and created a .ldif file Now I want to create a test ldap server with this data. I want to use the slapdtest-module from python-ldap. import slapdtest with…
ikreb
  • 2,133
  • 1
  • 16
  • 35
0
votes
1 answer

How do I get `ldapmodify` to change an indexed attribute in OpenLDAP?

I am trying to set up an OpenLDAP directory using the cn=config (or olc) method. I have got an entry in my directory that looks something like the following: dn: cn=entry,... olcAttr: {0}first value... olcAttr: {1}second value... olcAttr: {2}third…
Stephen Winnall
  • 301
  • 3
  • 14
0
votes
1 answer

Powershell: improving LDIF file to CSV conversion

I have the below code to convert an LDIF file (over 100.000 lines) to a CSV file (over 4.000 lines), but I'm not sure I'm happy with the time it takes - although I don't know how long it should take really; maybe that's a normal time on my laptop…
Chris
  • 88
  • 1
  • 11
0
votes
1 answer

Ldap3 lib python run ldif

I am using Apache directory studio to import ldif to update some eDirectory records. i would like to know whether we can use ladp3 lib by python to make this. Thanks.
0
votes
2 answers

Can't restore OpenLDAP to new server

I am trying to back up the config and database files from an existing LDAP server to move it to a different freshly installed server (Ubuntu 18.04). I followed the steps given here: https://tylersguides.com/articles/backup-restore-openldap/ to use…
0
votes
2 answers

Manipulating a huge text file to fetch occurrences of a particular field

I have a huge text file of the following format. I want to manipulate this file to fetch the number of occurrence of the department field. Each section has a field called department: As a result of my program, I need a CSV file of as mentioned in…
0
votes
2 answers

How to add the Default data from Ldif file to the Ldap Server with the java api?

I need to add bulk data into the LDAP server from the ldif file. I researched of java APIs but can't find the suitable one I already tried with LdapTestUtils but it requires a server restart. I need another way except this
UDIT JOSHI
  • 1,298
  • 12
  • 26
0
votes
1 answer

Print before and after each record in awk

I am trying to convert LDIF to JSON using awk. Can't figure out how to print before and after each multi-line record. Can print in BEGIN and END one time each or before and after each line. But never before and after each record. Actual LDIF input…
user261502
  • 71
  • 1
  • 8
0
votes
0 answers

Convert ldif to json

I have an ldif file like, dn: cn=abn,o=kb changetype:c objectclass: a objectclass: f objectclass: v objectclass: f objectclass: hh objectclass: kll mail: s surname: kg givenname: fg cn: kl dn: cn=abn,o=kb changetype:c objectclass: a objectclass:…
Radha
  • 61
  • 1
  • 10
0
votes
2 answers

Zimbra zmprov formatted file to csv and ldif

I'm learning python and my first assignment is to convert a Zimbra zmprov formatted file to csv and ldif. Since I don't know the python builtins to accomplish the task, I'm taking the long way and iterating over the lines and printing. I would…
RASG
  • 5,988
  • 4
  • 26
  • 47