r/linuxquestions • • 16d ago

Absolute minimal LDAP setup for software install

/r/redhat/comments/1xuf4e5/absolute_minimal_ldap_setup_for_software_install/
1 Upvotes

3 comments sorted by

1

u/usecornercase 16d ago

You don't need Active Directory or Samba for this. 389-ds-base is a complete standalone LDAP server, and AD is a separate Microsoft directory product that happens to speak LDAP. For an app that just wants an LDAP directory to store users and groups, 389-ds on its own is enough.

The minimal path on RHEL 9 is to run dscreate create-template, edit the generated .inf (set instance_name, root_password, suffix such as dc=example,dc=com, and create_suffix_entry = True), then dscreate from-file on it and systemctl enable --now dirsrv@<instance>. That gives you a working server on port 389 with a bind DN of cn=Directory Manager. Check it with ldapsearch -x -H ldap://localhost -D 'cn=Directory Manager' -W -b dc=example,dc=com, then add an ou=people and ou=groups with ldapadd.

After that, Windchill only needs the host, port, bind DN and the base DN. Check its install docs for which object classes and attributes it expects for users, since that decides how you populate the tree.

1

u/Itchy-Note5456 16d ago

Okay thank you so much, this is what I was looking for.

1

u/Itchy-Note5456 4d ago

I'm just gonna say, this WORKED! You do need to look up how to add people and groups. At least for the LDAP config, at least, I think, this worked. Windchill was able to start installing, but hangs for a completely unrelated issue with a random, nondescript NullPointerException! I love enterprise software!