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
4
votes
1 answer

How to add entry to LDIF file using Spring Boot embedded ldap server

I have built a spring boot REST app with LDAP authentication using unboundid as embedded ldap server. Authentication is based on simple LDIF file, and now I need the ability to add new entries to this file, so I could to authenticate with ones…
skyhook19
  • 53
  • 2
  • 5
4
votes
3 answers

Spring not able to load ldif

I'm currently tryin to build a small webapplication with Spring Boot 1.4.2.RELEASE. For that I'm also using Spring Boot LDAP with embedded LDAP and ldif loaded. If I'm starting that it always tells me that there is no DN set as you will see…
4
votes
2 answers

LDIF Parser (C#)

I am looking for an LDIF parser for C#. I am trying to parse an LDIF file so that I can check objects don't exist before adding them. Adding them when the already exist using ntdsSchemaAdd) causes an entry in the error logs.
Casebash
  • 114,675
  • 90
  • 247
  • 350
4
votes
1 answer

What characters need to be escaped in LDIF values?

Here are the characters which I'm pretty sure need escaping thus far: \r \n \ , ; " ' [ ] > < + I've combed through the internet, and haven't found a (comprehensive) list. While I'm aware I could carefully comb through all the relevant RFCs,…
root
  • 471
  • 5
  • 18
4
votes
2 answers

Importing a schema LDIF and content LDIF on every startup of ApacheDS?

I want my embedded ApacheDS to start up with a fresh schema/content when I run my tests. I tried to import a LDIF with this lines: LdifFileLoader ldifLoader = new LdifFileLoader(service.getAdminSession(), "path/to/my/export.ldif"); …
cringe
  • 13,401
  • 15
  • 69
  • 102
4
votes
3 answers

How do I get LdapAttributes

I'm trying to export ActiveDirectory records into LDIF-formatted files using Spring. I'm finding lots of information about parsing LDIF files, but relatively little about exporting to LDIF. With Spring there is an LdapAttributes class whose…
user41871
3
votes
6 answers

Are most LDAP administrators creating LDIFs by hand?

Are there tools that make the job easier? If command-line only tools exist, then can anyone speculate if there is a market for a GUI tool? For example, you can create a relational database by modeling visually. Should the same notion exist for LDAP?
McGovernTheory
  • 6,556
  • 4
  • 41
  • 75
3
votes
1 answer

Incorrect order cause exception when exporting LDIF in Apache Directory Studio

With Apache Directory Studio, I want to clone a LDAP server for testing purpose. The generate LDIF file can't be imported, since the order of structural entrys is wrong. As a result, I got ERR_251_PARENT_NOT_FOUND errors. Example situation: dn:…
Lion
  • 16,606
  • 23
  • 86
  • 148
3
votes
1 answer

How to add attributes in LDIF file?

I want to test LDAP with Spring using a LDIF file. I don't use xml. I achieve to read from LDIF file all the basic attributes. How I can add some custom attributes? So far I used this syntax dn:…
pacio14
  • 351
  • 1
  • 8
  • 18
3
votes
1 answer

LDIF idempotent apply tool

Before I write one, are there any tools for idempotent applying LDIFs: If change type is not specified, add or replace an entry (aka UPSERT) (removing any attributes not mentioned in the LDIF record). If change type is specified process like normal…
user933161
3
votes
1 answer

LDIF Parser in Java (LDIF->JSON)

Do you know any java library (or sth other maybe script?) that allows you to 'convert' LDIF to JSON? JSON data is easier for me to process, So an easy way to make such conversion would be really useful. Also I don't want to reinvent the…
damian
  • 316
  • 3
  • 7
  • 23
3
votes
2 answers

LDIF (LDAP) attributes list

I've been looking on the web but so far... not luck! Where can I find a list of all the LDIF attributes and corresponding values (e.g., "objectClass" may have "top", "person", ...)?
Jay
  • 347
  • 2
  • 5
  • 10
2
votes
2 answers

PowerShell find and replace using an array of strings

I'm wanting to comb through an LDIF file for 28 strings to replace. I have two arrays, one for the find, and another for the replace items. The replace is working, but is then overwritten on the next iteration. I don't know how to keep the existing…
FP55
  • 89
  • 1
  • 5
2
votes
0 answers

how to create new entry in ldif file (Embeded LDAP) using spring boot

I am trying to insert user details in my LDIF file which is perfectly configured with spring boot because I am able to fetch data even I am able to use LdapTemplate.bind() method. I have tried various codes and finally, I am able to use…
Balram Chauhan
  • 171
  • 1
  • 2
  • 14
2
votes
1 answer

I want a shell script that reads a specific attribute value from an ldapsearch result

I am trying to write a script that finds the checks homefolder quotas, and sends emails to users who are exceeding a certain percentage of their quota, we have 389 ldap server, I can search the ldap for a uid, and the result is in ldif format. I…
Judy
  • 31
  • 2
  • 3
1
2
3
10 11