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

How to add user membership using LDIF?

I am attempting to use an LDIF to add user memberships to existing user groups. Example: dn: CN=Domain Users,CN=Users changeType: Modify add: member member: CN=SomeCN1 member: CN=SomeCN2 member: CN=SomeCN3 member: CN=SomeCN4 All works fine, except…
JBuenoJr
  • 945
  • 9
  • 14
0
votes
0 answers

Using LdifReader from Apache Directory LDAP API in JAVA

Does anyone have problem with using LdifReader. The code that i using is this: LdifReader reader = new LdifReader(); List entries = reader.parseLdifFile("/tmp/file.ldif"); for (LdifEntry entry : entries) { …
0
votes
2 answers

Create postfix aliases file from LDIF using awk

I want to create a Postfix aliases file from the LDIF output of ldapsearch. The LDIF file contains records for approximately 10,000 users. Each user has at least one entry for the proxyAddresses attribute. I need to create an alias corresponding…
Nic
  • 4,319
  • 5
  • 29
  • 36
0
votes
1 answer

LDAP LDIF Java Parsing & New Lines

I have some code that transforms an excel sheet into an LDIF statement. I was curious that when I create a new line is there a proper way to do it so that when I try to run the LDIF there won't be any errors? For now I just have \r\n at the end of…
eric MC
  • 766
  • 2
  • 10
  • 36
0
votes
1 answer

Export/Import Octet String via ldif

I need to transport Attributes from one LDAP Directory (Novell eDirectory) to another. I use LDIF to do that. But until now, i couldn´t find a way to import Octet Strings this way. The export to ldif seems to work. The Octet String Attributes i need…
MaiLo
  • 87
  • 1
  • 9
0
votes
1 answer

LDAP Server Acting As CRM

I am currently working on development of a CRM product for my company. LDAP is used access information about: User information Contact information Network resources LDAP can be used to lookup: Encryption certificates Pointers to…
user1646481
  • 1,267
  • 6
  • 21
  • 29
0
votes
1 answer

ApacheDS OID Specifying Data Type List

I am using ApacheDS as an LDAP Server. When you define attributes there are different types. For example, String or boolean. Is there a way to specify a List. So a List of Mobile? If not, how can this be done. I am aware there is an ObjectClass…
user1646481
  • 1,267
  • 6
  • 21
  • 29
-1
votes
1 answer

Export all old Entries of ldif Files from server with ldaptool and reimport them

I tried to export all Entries that be already imported with ldaptools and i used this .\ldapsearch.exe -x -c -h example -D "uid=admin,ou=system" -w secret -b "example" > output_file.ldif But i did not get the same order especially some Entries…
Majd
  • 1
-1
votes
1 answer

ldapadd / ldapmodify - adding database parameters

I'm a n00b when it comes to ldap and wondering if someone could please help me. I've been running through a tutorial (and have it working), but they seem to be doing something that doesn't appear to be the correct way of doing it, and I don't…
STOIE
  • 141
  • 1
  • 9
-1
votes
1 answer

How do I import Active directory ldif file to openldap server?

I am having a ldif file which exported from Active directory. it contains users and group details. I have tried to import directly through jxloper, it throws error. How do I import Active directory ldif file to openldap server?
-1
votes
1 answer

Export Passwords from ldap

I have a list of user accounts with passwords in different formats (Binary 11, Binary 3, Binary 33). When I export as ldif, it has all encrypted passwords. I want all passwords as plain text. (As I can see in ldap). Can I have plain passwords in…
Rohail Abbas
  • 551
  • 1
  • 7
  • 20
-2
votes
1 answer

Is there a way to do a offline directory changes through ldif file?

I have a ldif file containing multiple modify operations. I would like to apply them offline, as ldif-import can import data in a off-line manner. I've looked at ldif-import, but I understand it can only apply add operations, not modify operation. I…
Dominique
  • 87
  • 2
  • 10
-3
votes
1 answer

case-preserving LDIF reader/parser/stream

I have to read an LDIF file, split the entries, modify them and then write the result as LDIF files. I found an LdifReader at the Apache Directory LDAP API (org.apache.directory.api:api-ldap-client-api), so I tried that one like…
Marcus
  • 1,857
  • 4
  • 22
  • 44
-4
votes
2 answers

Convert CSV to LDIF for import into ldap?

I have a MSSQL database with 13k users in a table with headers like username, password, fname, lname, etc. I would love to be able to turn this data into a proper ldap server. Currently I've done the following: Create a job on the mssql server to…
DrZaiusApeLord
  • 155
  • 1
  • 1
  • 9
-5
votes
2 answers

Append current line to previous line

I'm trying to parse .ldif file but failed to get desired output. Any help is much appreciated. Here's is what I'm doing using python: lines = open("use.ldif", "r").read().split("\n") for i, line in enumerate(lines): if not line.find(":"): …
Radha
  • 61
  • 1
  • 10
1 2 3
10
11