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

Trouble matching LDAP entry with multiline regex

I have multiple log files with LDAP entries and I'm trying to match only the entries that have a createtimestamp during a certain date but capture the whole entry, not just the timestamp. The entries are as follows: dn: .... otherattr:…
Adam
  • 89
  • 1
  • 2
  • 8
2
votes
3 answers

Storing Photo in LDAP

I am aware that you can store photos in LDAP. But is it a good idea? Currently, building a LDAP structure for company requirement.
user1646481
  • 1,267
  • 6
  • 21
  • 29
2
votes
2 answers

Adding Custom Attributes to ApacheDS Server

I am using ApacheDS Server as an LDAP Server. I have created a custom attribute to use in my LDAP structure that I have defined. I have created a schema and inside the Schema I have defined an ObjectClass and an attribute called dateOfBirth. I…
user1646481
  • 1,267
  • 6
  • 21
  • 29
2
votes
2 answers

How to import a groups members using 'ldifde'?

I have two domains. One production. One testing. There is no trust between the two. I can import all user objects and group objects successfully using ldifde commands. When I attempt to also include group members in my export/import I can't seem to…
SinFulNard
  • 173
  • 2
  • 2
  • 10
2
votes
1 answer

Export AD structure from specific OU, then re-create structure in new domain

I've researched and found the way to export our active directory information for our application is like this: csvde -d OU=MyAppsOU,DC=dot,DC=testdmz,DC=lan -f C:\temp\addump_ou.csv -r (objectClass=organizationalUnit) Now, I've read that to…
ganders
  • 7,285
  • 17
  • 66
  • 114
2
votes
4 answers

LDIF file error?? Invalid Format?

I am currently working with LDAP which is on a UNIX server. The main purpose for me right now is to modify two entries in the directory by Ldapmodify through command line. The command is as follows: ldapmodify -a -D 'cn=ldap,dc=cs,dc=ttu,dc=edu' \ …
user1031752
  • 395
  • 2
  • 6
  • 9
1
vote
1 answer

LDAP how to modify attribute _name_

I need to update for some thousand entries the name of an LDAP attribute, eg. cn=myentry,ou=people,o=mycompany has an attribute like surname and it shall be renamed to lastname and preserve the value. Any clue how to achieve this with…
1
vote
1 answer

How to verify if an object does exist in a directory (LDAP or AD) using jndi?

Currently we are doing something like: Attributes attributes = directoryConnection.find(filter, false); if (attributes == null) { // then the object does not exist } i think this is not efficient, we don't need to retrieve the whole attributes…
cablop
  • 177
  • 2
  • 6
1
vote
0 answers

How to display LDIF data in folder tree structure in react js app

I have a LDAP's LDIF data and I want to display that LDIF data in react js web app in folder structure format to expand, view its children's and select it. Any Idea how I can achieve this?
Lucky
  • 325
  • 1
  • 3
  • 16
1
vote
0 answers

Why Is the object class "top" specified in a ldif entry?

Every ldif entry requires the top object class to be specified. Here is an example: dn: uid=steves,ou=users,ou=SWG, dc=com uid: steves userPassword:: hello123 objectClass: inetOrgPerson objectClass: top objectClass: person objectClass:…
shodz
  • 344
  • 3
  • 13
1
vote
1 answer

ldapadd auto generated comments contain broken characters

I have an issue with an ldap entry. I try to create a dn such as : dn: ou=élèves,ou=1A,ou=Classes,ou=Personnes,dc=ldap,dc=ecoleplurielle,dc=local as I have utf-8 characters in ou=élèves I translate this value in base-64 and add an extra colon after…
gchaste
  • 11
  • 1
1
vote
0 answers

How to remove the duplicate entries in each dn session by shell

I am facing problem in removing the duplicate entries. There are some duplicated pwdHistory in each session in a large ldif file. The entries are like: dn: uid=mdwu701,ou=people,c=CN,dc=com passwordRetryCount:0 passwordExpirationTime:…
L.Albert
  • 11
  • 2
1
vote
1 answer

Use Python's LDIF Parser to skip some attributes and write to a new LDIF file

I am using the python LDIF parser (link) to edit some attributes and generate a modified version of the file. My LDIF file is # entry-id: 1 dn: cn=Directory Administrators, dc=organization,dc=corp nsUniqueId:…
rhonda
  • 99
  • 2
  • 6
1
vote
1 answer

Add custom attribute to User Schema failing LDF

I am trying to add a custom attribute to the user class in active directory but it keeps failing. I have already created the ExpirationDate attribute (date-time type -- oMYsyntax = 24 and attributeSyntax = 2.5.5.11). I have added several other…
sp_vennem
  • 55
  • 1
  • 8
1
vote
0 answers

Python create dictionary from ldif file

My_ldif loos like: Dn: sample,dc=sample,dc=com Objectclass: top Objectclass: organizational Cn: sample Address: 123 Address: 345 .......................... And so on for multiple lines I can get the output in dictionary with key and value but…
Shali
  • 11
  • 2