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
1
vote
3 answers

Create Multiple Python Dictionaries from a List?

I am having a difficult time splitting an LDIF file with thousands of entries into multiple dictionaries. For example, my LDIF file looks like: dn: value ou: value objectClass: value entryUUID: value creatorname: value entryNNN: value modifierName:…
1
vote
0 answers

Migrate users from 389 LDAP to Azure Active Directory

I want to migrate the users from 389 LDAP server to Azure Active Directory (Azure AD). I tried following options - 1.I exported users from 389 into LDIF file using Apache Directory Studio client. But on Azure AD, there is no option to import users…
justjava
  • 41
  • 3
1
vote
1 answer

Active Directory to LDIF OpenLDAP

How would I create an LDAP that mimics the structure of a typical Active Directory? I need the following values to be included in each user: This isn't the right syntax but I want to add a user with a specific user name and password dn:…
Lime
  • 13,400
  • 11
  • 56
  • 88
1
vote
1 answer

Error when importing LDAP schema: OID could not be expanded

I'm trying to import a schema into openLDAP. The schema comes from an installer that uses an an older version of OpenDS so I've have to make some adjustments. Here is the original schema LDIF: dn: cn=schema objectClass: top objectClass:…
user2328273
  • 868
  • 3
  • 12
  • 22
1
vote
0 answers

Interactive BASH or AWK in LDAP LDIF

I have a LDIF file with structure that looks similar to: NUMBER: 44567898787 ORGANISATION: Something NAME: Joe SURNAME: Johnny PLACE: Somewhere NUMBER: 44555444333 ORGANISATION: Unknown NAME:Alice SURNAME: State PLACE: Here I'm using AWK…
Empe
  • 11
  • 2
1
vote
2 answers

From file to ldif script, attributes separated by comma

I have a file like this: h3fah055,NG_SYS_UX,NG_SYS_FO,NG_SYS_STG,NG_APP_DWH h3fah058,NG_SYS_UX,NG_SYS_FO,NG_SYS_STG,NG_APP_DWH h3fah065,NG_SYS_UX,NG_SYS_FO,NG_SYS_STG,NG_APP_ERP h3fah066,NG_SYS_UX,NG_SYS_FO,NG_SYS_STG,NG_APP_ERP …
LucaP
  • 638
  • 1
  • 12
  • 34
1
vote
1 answer

How can I delete an entity in LDAP recursively

I have the following tree in LDAP Legend $Msisdn = 13217654321 // 11 digits phone number: (contry)+(area)+(number) $Imsi = 999888000007777 // standard 15 digits IMSI number $MobileDomain = ims.mnc888.mcc999.3gppnetwork.org + HssNodeName | +…
Binyamin Regev
  • 914
  • 5
  • 19
  • 31
1
vote
1 answer

openldap - cannot create ldif file from schema file

I'm trying to add my own schema to OpenLDAP, but when I convert .schema -> .ldif using slaptest, there's nothing in the destination directory except for some default schemas. Mine is not being created. I added the path to slapd.conf. I'm creating…
Mariusz W
  • 39
  • 1
  • 8
1
vote
1 answer

How to create LDAP aliases in Openldap and Phpldapadmin?

I am trying to do this example with an email field : https://coderwall.com/p/c0w6-q/create-ldap-aliases-in-openldap This is the .ldif that should create both : # this is the user dn:…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
1
vote
1 answer

parsing an Ldif file to json in nodejs

I have an LDIF file and i need to parse it to json format to work on it in nodejs , so I'm asking if there is any library to do that or any other solutions? Thanks for helping
Aminfo
  • 23
  • 9
1
vote
1 answer

Convert a Base64 LDIF file to plaintext (for import)

I have a LDIF file which has a multi-value Base64-encoded attribute, and I'd like to convert it in non-Base64-encoded syntax. How can this be done? Context The LDIF file is as such: dn:…
dr_
  • 2,400
  • 1
  • 25
  • 39
1
vote
1 answer

Delete an attribute in LDAP using LDIF with Python

I want to do (what I thought) would be quite a simple thing. I have an LDAP entry that looks like this(in LDIF format): dn: cn=myorg,ou=teams,ou=groups,o=company,c=us cn: myorg objectClass: top objectClass: CompanyTeams objectClass:…
Chloe
  • 13
  • 4
1
vote
1 answer

Granting an ADMIN role to a user in a ldif file

For a test environment, I have an .ldif file to grant the ben user, the ADMIN role, as this role is required by my Spring security configuation: .hasRole("ADMIN").anyRequest(). Here is the .ldif file content: dn:…
Stephane
  • 11,836
  • 25
  • 112
  • 175
1
vote
1 answer

How to correctly allow a given user access to update a record on openldap

I have been trying to apply this dlif to my openldap server: $ cat acl.ldif dn: olcDatabase={1}hdb,cn=config changetype: modify add: olcAccess olcAccess: {3}to dn.exact="cn=ldap-city-thedomain-com,dc=repl,dc=thedomain,dc=com"…
Rumbles
  • 1,367
  • 3
  • 16
  • 40
1
vote
1 answer

Is it ldif or search filter?

I'm writing standalone java program where I pass input and output files as command line arguments. The input file contains either valid LDAP search filter or LDIF. I'm using Apache Directory LDAP API but I've not found anything there I could use to…
Gunnlaugur
  • 341
  • 1
  • 8
  • 19