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

Generate objectSID for LDIFDE import

i'm writing an AD sync tool, which takes an LDIF file exported from an AD A, applies some replaceing and skip rules and creates another LDIF file that can then be applied to an AD B. During the creation, i have read access on the AD B, so i can get…
esskar
  • 10,638
  • 3
  • 36
  • 57
2
votes
4 answers

Deleting a text block out of a text file by shell script

I have a big LDIF file (OpenLDAP) and I want to remove one attribute out of every dataset. Example: dn: uid=axx,ou=People,dc=myfirma,dc=net uid: axx jpegPhoto:: /9j/4AAQSkZJRgABAQEAAAAAAAD/4QBaRXhpZgAATU0AKgAAAAgAAYKYAAIAAAA3 …
user1195024
  • 83
  • 1
  • 4
2
votes
1 answer

How set up java application with personal LDAP SERVER, LDIF file

I'm trying to use an embedded LDIF file to test my Java Application. I put this parameter in the application.properties: spring.ldap.embedded.ldif= C:\\Test.ldif But if I try to test the application I still can be authenticated with the real…
pacio14
  • 351
  • 1
  • 8
  • 18
2
votes
0 answers

How to make changes to a schema using an LDIF file

I'm using a ruby gem named Ladle (https://github.com/NUBIC/ladle). It spins up an LDAP server and takes in an LDIF file. It also allows you to load a custom schema by passing said schema when creating the server object. The gem utilizes apacheds 2.0…
2
votes
1 answer

LDAP : Uploading LDIF

I am trying to upload entries to LDAP, but i keep getting error. I have installed LDAP server in STS, and created my new partition as so : name : messenger id : o=messenger cache=100 Auto generate Context Entry = unchecked After starting the server…
Lazaruss
  • 1,107
  • 1
  • 13
  • 24
2
votes
1 answer

APACHEDS 2.0 - LDIF command line import on windows maschine

I'm looking for a way to import a ldif file into a apacheDS 2.0 LDAP server. I've seen there was a way with 1.5 and the apacheds-tools.jar but this seems to be removed. Is there another easy way to get the task done?
da.eXecutoR
  • 313
  • 5
  • 16
2
votes
2 answers

perl Net::LDAP::LDIF read ldif from variable string

Usually, I load parse ldif from file using following method: use Net::LDAP::LDIF; use Net::LDAP::Entry; use Data::Dumper; my $ldif = Net::LDAP::LDIF->new( "filename.ldif", "r") or die "file not exits\n"; while( not $ldif->eof ( ) ) { $entry =…
guete
  • 79
  • 2
  • 12
2
votes
2 answers

Python-Ldap lib. Import LDIF

Is it possible to import LDIF like that dn: cn=vpupkin,cn=people,ou=company,dc=domain,dc=com c: UA cn: vpupkin employeetype: Indoor Front-end developer gidnumber: 500 givenname: Vasya homedirectory: /home/vpupkin host: example.com l:…
ipeacocks
  • 2,187
  • 3
  • 32
  • 47
2
votes
1 answer

What is the LDAP schema syntax to specify list of allowed attribute values?

I am new to OpenDJ and LDAP and I want to know what is the LDAP Schema syntax to specify an attribute can have only one of the few values? For example, an User object has an attribute called status that can have only one of these values: Active,…
Nikki
  • 97
  • 10
2
votes
1 answer

Import object class definitions to Active Directory (AD LDS)

I am stuck migrating object class definitions from OpenDS to Active Directory. I have already successfully migrated some definitions (and can read/write to AD with my Java application) - but now I'm stuck. In my OpenDS schema description I have…
Frizz
  • 2,524
  • 6
  • 31
  • 45
2
votes
1 answer

How to add objectclass and custom attribute to LDIF file?

I am using LDAP authentication in spring-security. For some reason I don't have an LDAP server and I have configured my spring-security.xml to use the LDIF file. I need to add a custom attribute, called type for the users. So I created an…
gaganbm
  • 2,663
  • 3
  • 24
  • 36
2
votes
1 answer

adding objectclass with mandatory attribute to existing LDAP node

I'm trying to setup an LDIF file which shall add a new attribute value to an existing node. The attribute is a mandatory attribute of custom objectclass. Here is the contents of the LDIF file 'add.ldif': dn:…
Heiko Nardmann
  • 171
  • 1
  • 11
2
votes
1 answer

ldapmodify: invalid format (line 5) entry: " ... " on LDIF (passed from PHP)

I'm attempting to write a bit of code that will allow users to change their expired Active Directory passwords via a PHP web interface. Due to limitations with PHP's ldap library's*, it seems the only way to do this is by generating an ldif and then…
Carl
  • 1,816
  • 13
  • 17
2
votes
2 answers

Adding certificate in userSMIMECertificate attribute of inetOrgPerson

I'm going to publish a certificate for my email using LDAP. I already have a LDAP up and running (AD LDS) on windows 2012. I'm going to add records using ldif file. Here its contents dc: dc=mysubdomain,dc=mydomain,dc=com dn:…
Oybek
  • 7,016
  • 5
  • 29
  • 49
2
votes
3 answers

Python algorithm to sort large blocks of data

I've been looking online for a method to sort the kind of data I have (LDIF files), but I haven't found quite what I'm after. There are already programs out there to accomplish this sorting, but they fail with extremely large data sets. Well, for…
Rusty Lemur
  • 1,697
  • 1
  • 21
  • 54
1 2
3
10 11