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

How do I delete one attribute in LDAP with LDIF?

How do I delete one attribute in LDAP with LDIF? I an trying to delete uniqueMember: cn=jsmith,ou=users,dc=s2rsolutions,dc=com can someone please show me the LDIF to do it? dn: cn=USER,ou=groups,dc=s2rsolutions,dc=com objectClass:…
SJS
  • 5,607
  • 19
  • 78
  • 105
14
votes
1 answer

Using spring embedded ldap to simulate active directory for integration tests

I am using the Spring Security ActiveDirectoryLdapAuthenticationProvider with Spring Boot (annotation based config) to authenticate with Active Directory and generate tokens. All works fine. I wish to add some integration tests that simulate the…
jbx
  • 21,365
  • 18
  • 90
  • 144
13
votes
2 answers

sample active directory ldif file with apacheds

Here there is a spring-security example, ldap-xml, which runs a ldap server and imports a LDIF file for…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
11
votes
4 answers

Getting AttributeError: module 'base64' has no attribute 'decodestring' error while running on python 3.9.6

Issue description: Getting AttributeError: module 'base64' has no attribute 'decodestring' error while running on python 3.9.6 Steps to reproduce: Below is a dummy program, while running on python 3.9.6, I am getting `AttributeError: module 'base64'…
Rahul Srivastava
  • 513
  • 1
  • 5
  • 9
10
votes
2 answers

Modify passwords in an LDIF file using ldapmodify command

I have a LDIF file that consists of a set of test users and I would like to change the passwords for these users. I used the ldapmodify command: ldapmodify -c -a -f filename.ldif -h localhost -p -D dn -w << ! dn:…
user1428900
  • 141
  • 1
  • 2
  • 11
9
votes
1 answer

Change password using LDIF file

I have an LDIF file that contains a bunch of test users. I would like to change the password for some of these users and was wondering what would be the best way to do so.
Joly
  • 3,218
  • 14
  • 44
  • 70
8
votes
2 answers

How to validate an LDIF?

How to validate an LDIF? Similar to XML, XMLSchema and Schematron are there any libraries to validate an LDIF with an LDAP schema?
Crazy Chenz
  • 12,650
  • 12
  • 50
  • 62
8
votes
1 answer

Error 50 (Insufficient Access Rights) when applying LDIF - OpenLDAP

I'm trying to apply a config through a LDIF file. I'm binding as admin on my LDAPs server and I'm getting the following Error Message: LDAP: Error 50 - Insufficient Access Rights I'm binding as admin and I'm able to perform any query or any…
Thiago Lima
  • 81
  • 1
  • 1
  • 3
7
votes
3 answers

Change default admin password in ApacheDS

Am new to ApacheDS - am using apacheds-2.0.0-M17. The default password for admin is secret. Does anyone know where I can change the value to something else? Inside: apacheds/instances/default/conf/config.ldif Found the following…
PacificNW_Lover
  • 4,746
  • 31
  • 90
  • 144
7
votes
2 answers

Export and Import apacheds data into LDIF programmatically from java

I have create a server in Apache Directory Studio. I also created a partition and inserted some entries to that server form Java. Now I want to Backup and Restore this data in and LDIF file programmatically. I am new to LDAP. So please show me a…
Emdadul Sawon
  • 5,730
  • 3
  • 45
  • 48
7
votes
1 answer

Modifying Active Directory Passwords via ldapmodify

I'm investigating the scripting of various LDAP operations. However, I've hit a bit of a speed bump with Active Directory user creation. The following LDIF fails when I load it in via the ldapmodify command: dn:…
Gadgeteering
  • 128
  • 1
  • 1
  • 7
7
votes
2 answers

How to import ldif file using unboundid-ldap-sdp?

I exported the following ldif file from an LDAP server and am now trying to import it so that I can replicate the directory I exported it from: dn: cn=MYCOMPANY Users,dc=mycompany,dc=com changetype: add objectClass: posixGroup objectClass: top cn:…
user2586917
  • 762
  • 1
  • 9
  • 26
6
votes
6 answers

Sed/Awk - remove blankspaces / join lines in ldif dump

I got some entries in my ldif file that makes my dump bad for next import. sambaPasswordHistory: 712BC301C488FD2651BEF5AA11899950547B9ED3C059FF83CE39049B BAEECB31692629A94A3C1F4737E3EA854C001704793DB9A67EB977563CE601DF98E7E23C2851F …
5
votes
2 answers

How to use LDAP credentials offline?

I would like to use an LDAP server (probably Apache directory) to manage logins and credentials for an application. From time to time the application needs to work offline (on a laptop) without a connection to the LDAP server. What is the best way…
Name
  • 3,430
  • 4
  • 30
  • 34
5
votes
1 answer

What is the difference between LDAP schema and LDIF?

Setting up an LDAP server I have to import a couple of schemas, for example eduPerson. There is an LDIF file issued by the developers, that says: # This LDIF file can be used to add to add the eduPerson schema to # an OpenLDAP server > 2.4 that…
Gottlieb Notschnabel
  • 9,408
  • 18
  • 74
  • 116
1
2 3
10 11