168 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
100
views
How can I handle "include" in LDIF using `Net::LDAP::LDIF->read_entry()`?
I wrote some simple perl script that creates an Net::LDAP::LDIFobject on an input file and then reads the contents using $ldif->read_entry().
After some processing I'm writing the entries again to ...
0
votes
1
answer
159
views
ldap_add: No such object (32) when adding the root entry (initial ldif)
I'm trying to populate an ldap instance but my ldif fails to add the root entry. These are the first lines of my ldif mytest.ldif:
version: 1
dn: dc=mytest,dc=net
objectClass: top
objectClass: domain
...
0
votes
1
answer
163
views
Export LDAP attributes in LDIF file with LDIFWriter (Python
I'm trying to export data from an LDAP entry in an LDIF file.
connexion.search(search_base=base_dn, search_filter=filtre_ldap, attributes=['*'], search_scope=SUBTREE)
entry = connexion.entries[0] # I ...
0
votes
1
answer
1k
views
openldap: add simple attributes to users via ldif?
How can I add some simple attributes to users in openldap using ldif and ldapadd/ldapmodify?
I would like each user/person to have optional mail, middle_name and city attributes.
using the follwing ...
0
votes
1
answer
62
views
Is there way to setup `primaryGroupId` for user using ldif?
I want to setup PrimaryGroupId for user. For that purpose I've created the with content:
dn: CN=user_2,CN=Users,DC=my,DC=company
changetype: modify
replace: primaryGroupID
primaryGroupID: 501
But ...
0
votes
1
answer
1k
views
Error trying to add entries with ldapadd: Server is unwilling to perform (53)
I'm trying to add entries to an ldap database I compiled, so I have the default configuration from the openldap site. The thing is, I exported an ldif file from an existing ldap server in order to ...
0
votes
0
answers
472
views
How to import ldif file in a manner insensitive to entries order
Based on this I use following code to start in memory ldap server
// Create the configuration to use for the server.
InMemoryDirectoryServerConfig config =
new InMemoryDirectoryServerConfig("...
1
vote
0
answers
85
views
How to display LDIF data in folder tree structure in react js app
I have a LDAP's LDIF data and I want to display that LDIF data in react js web app in folder structure format to expand, view its children's and select it.
Any Idea how I can achieve this?
2
votes
0
answers
504
views
Why Is the object class "top" specified in a ldif entry?
Every ldif entry requires the top object class to be specified. Here is an example:
dn: uid=steves,ou=users,ou=SWG, dc=com
uid: steves
userPassword:: hello123
objectClass: inetOrgPerson
objectClass: ...
0
votes
2
answers
790
views
OpenLDAP associate existing users to an organization unit (OU)
I created an OpenLDAP server on Ubuntu 22.04, and created users but forgot to add them to a organizational unit (ou). How can I associate them all to an ou now ?
The actual server looks like this:
dn=...
1
vote
1
answer
174
views
ldapadd auto generated comments contain broken characters
I have an issue with an ldap entry. I try to create a dn such as :
dn: ou=élèves,ou=1A,ou=Classes,ou=Personnes,dc=ldap,dc=ecoleplurielle,dc=local
as I have utf-8 characters in ou=élèves I translate ...
0
votes
1
answer
88
views
Scan a file for values and convert into columns
I have an ldif file that contains millions of records and some of them start with the value dn: serv=CSPS. After that value could be a random number of rows that start with APNIDx: (being x a number ...
0
votes
1
answer
232
views
Parse pKIOverlapPeriod from LDIF export into days
Some background to what I'm trying to achieve (you don't need to read it if you're not interested, just for reference).
I have exported a certificate template from AD into an LDIF-file using the ...
0
votes
1
answer
1k
views
DateTime "invalid per syntax" in LDAP pwdLastSet attribute
I'm trying to add a pwdLastSet attribute to my LDAP test user. I've created this ldif file:
dn: cn=test,dc=example,dc=com
changetype: add
objectClass: passwordLastSet
add: pwdLastSet
pwdLastSet: ...
1
vote
1
answer
3k
views
Exported LDIF cannot be used for import
Im trying to create an easily reproducible ldap setup for some testing.
I've been using bitnami's openldap docker container to load an exported ldif file at startup.
However, importing the ldif file ...