Questions tagged [ldif]

52 questions
1
vote
1 answer

Is it possible to make ldif config in one file like slapd.conf?

slapd deprecated slapd.conf, prefer ldif conf, slapd -F dir to use the new ldif conf, but the dir must follow the ldif structure cn=config.ldif cn=config/ cn=schema.ldif cn=schema/ is it possible to make the initial ldif config in one file like…
wener
  • 113
  • 3
0
votes
1 answer

When running ldifde, I'm missing the objectSid values. How do I get those to be returned?

I'm able to generate an LDIF export of my active directory like this ldifde -f test-data.ldif ldifde -f test-data2.ldif -d "CN=Configuration,DC=domain,DC=com" I then combine these two files together and I have a pretty useful exported LDAP…
Nicholas DiPiazza
  • 197
  • 1
  • 1
  • 11
0
votes
0 answers

OpenLDAP - Access rights by group

How do I grant full access (add, modify, delete) on the children of ou=Something,ou=People,dc=example,dc=com to the members of group cn=Managers,ou=Group,dc=example,dc=com ?
haba713
  • 117
  • 6
0
votes
1 answer

How to parse an ldif export for attribute values

I have an ldif export where I want to build an outputfile with one line per ldif entry; the one line contains various attribute-values in a specific order. So the commands should parse each ldif entry beginning with the dn: attribute and evaluate…
Richard
  • 21
  • 1
  • 3
0
votes
1 answer

Importing a extended attribute in schema in AD , does it need mAPIID put into LDIF file?

What exactly is mAPIId and should it be put into the ldif file when the schema is imported into a AD forest?
Darktux
  • 827
  • 5
  • 21
  • 36
0
votes
1 answer

openldap add acl's for group

It's my first day on ldap I've read these howto's and posts and could not point it…
lemrm
  • 3
  • 1
  • 5
0
votes
1 answer

LDIF - Delete Attribute IF Exists

We are using the following LDIF to remove POSIX Attributes from our LDAP Directory. This works fine, except in the case where an attribute does not exist. For e.g. it will fail if the homedirectory attribute doesn't exist. How can I make this such…
Saqib Ali
  • 428
  • 2
  • 7
  • 21
0
votes
2 answers

openLDAP Replication Error "invalid format entry: olcDatabase={1}mdb,cn=config"

I'm trying to set up an LDAP Replication server by following this (https://www.server-world.info/en/note?os=Ubuntu_16.04&p=openldap&f=5) tutorial. At Step "[3] Configure LDAP Consumer" I've got the ldapadd error message "ldapass: invalid foramt…
Tabby
  • 21
  • 2
  • 5
0
votes
2 answers

Modify AD Attribue for a specified list of users

How would you modify a set of AD attributes for a specified list of users? In particular, I would like to set the following for individual users since the exchange general tab under user properties with Active Directory Users and Computers limits…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
0
votes
1 answer

Reset Passwords of LDAP-Users at the first login

I have an LDAP Installation running on an Centos7 system. I want to create a big number of users. Those users will get a default password, so I want them to change the password at the (only)first login. Is there an Option, which I could set in an…
Twinhand
  • 83
  • 5
  • 15
0
votes
1 answer

How to add Organisations to LDAP via LDIF?

I want to initially add a couple of organisations. So I created an organisations.ldif in order to add them via ldapadd -Q -Y EXTERNAL -H ldapi:/// -W -f organisations.ldif My file looks like this dn: dc=example,dc=com o: org1 objectClass:…
0
votes
1 answer

Discrepancy in exporting LDIF OpenLDAP vs Apache Directory Studio

very new to the world of LDAP. I find that when I export an LDIF file in my OpenLDAP instance on Linux, running the slapcat command as such: ./slapcat -f /somewhere/slapd.conf -l backup.ldif it does not yield the same result as exporting using the…
0
votes
1 answer

how to create two dits in rts openldap server

I have created a base database with like this olcDatabase={0}config.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 5ebe5cbf dn: olcDatabase={0}config objectClass: olcDatabaseConfig olcDatabase: {0}config …
ashok
  • 229
  • 2
  • 4
  • 10
0
votes
1 answer

Custom schema for OpenLDAP 2.4

I am new to OpenLDAP administration. My aim is to learn how to create custom schemas, and customize "my" directory server this way. I tried to add one optional attribute - ipPhone. Made a schema (dummy) then converted it to the below LDIF file: dn:…
Moshe Shmukler
  • 207
  • 1
  • 8
0
votes
1 answer

Sanitizing dates using sed or awk on an ldapsearch query

I'd like to pipe the output of an ldapsearch to sanitize the dates returned - I presume sed and/or awk can help with this but would appreciate a bit of help. The fixed length date format in the LDIF output file is like this: whenCreated:…
Linker3000
  • 668
  • 1
  • 5
  • 14