1
0
blezz-tech fdc769843c update README.md 6 өдөр өмнө
..
README.md fdc769843c update README.md 6 өдөр өмнө
init.ldif 7d12435277 add conifg jabber and ldap 6 өдөр өмнө
ldap 7d12435277 add conifg jabber and ldap 6 өдөр өмнө
sharix.schema 7d12435277 add conifg jabber and ldap 6 өдөр өмнө
slapd.conf 7d12435277 add conifg jabber and ldap 6 өдөр өмнө

README.md

For ALT Linux P10/P11

  1. Place slapd.conf to /etc/openldap/ chown -R ldap:ldap /etc/openldap /var/lib/ldap /etc/sasl2 #idea - correct group for ldap, otherwise it could not run correctly

Place sharix.schema to /etc/openldap/schema/

  1. service slapd stop
  2. Init database from init.ldif files

slapadd -v -l init.ldif -f /etc/openldap/slapd.conf

  1. check ldap file and place in to /etc/sysconfig/ldap
  2. add to /etc/hosts:

ip_address ldap.sharix.ru

  1. service slapd start
  2. systemctl enable slapd

Maybe it's better to use localhost instead ldap.sharix.ru. OR write to /etc/hosts local ip address and ldap host specified in the config.

  1. Check if packages in installed on a host system:

packages for building ldap django extenion:

libsasl2-devel gcc python3-dev libldap-devel libldap2


path ldap database: /var/lib/ldap/bases/TREE_NAME

apt-get install openldap-servers -y