Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP-Sync not configured #118

Open
Jenziner opened this issue Nov 11, 2024 · 0 comments
Open

LDAP-Sync not configured #118

Jenziner opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working INFRASTRUCTURE

Comments

@Jenziner
Copy link
Owner

Multiple LDAP running, but not synchronized. See error in docker log of consumer:
67322196 conn=1001 fd=12 ACCEPT from PATH=/var/run/slapd/ldapi (PATH=/var/run/slapd/ldapi)
67322196 conn=1001 op=0 BIND dn="" method=163
67322196 conn=1001 op=0 BIND authcid="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" authzid="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"
67322196 conn=1001 op=0 BIND dn="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" mech=EXTERNAL sasl_ssf=0 ssf=71
67322196 conn=1001 op=0 RESULT tag=97 err=0 text=
67322196 conn=1001 op=1 ADD dn="olcOverlay=syncprov,olcDatabase={1}mdb,cn=config"
67322196 conn=1001 op=1 RESULT tag=105 err=17 text=olcSyncProvSessionlog: attribute type undefined
67322196 conn=1001 op=2 UNBIND
67322196 conn=1001 fd=12 closed

Manual:

  1. Export LDAP-DB on Provider (orbis, ldap.jedo.dev)
    docker exec <provider_container_name> slapcat -l /tmp/ldap_backup.ldif
  2. Copy to Consumer (regnum, ldap.tws.jedo.dev)
    docker cp <provider_container_name>:/tmp/ldap_backup.ldif /tmp/ldap_backup.ldif
    docker cp /tmp/ldap_backup.ldif <consumer_container_name>:/tmp/ldap_backup.ldif
  3. Import LDAP-DB on Consumer
    docker exec <consumer_container_name> ldapadd -x -D "cn=admin,dc=jedo,dc=dev" -w adminpassword -f /tmp/ldap_backup.ldif

May be automated with cron
on Provider:
0 * * * * docker exec <provider_container_name> slapcat -l /tmp/ldap_backup.ldif
on Consumer:
5 * * * * docker cp <provider_container_name>:/tmp/ldap_backup.ldif <consumer_container_name>:/tmp/ldap_backup.ldif && docker exec <consumer_container_name> ldapadd -x -D "cn=admin,dc=jedo,dc=dev" -w adminpassword -f /tmp/ldap_backup.ldif

@Jenziner Jenziner added bug Something isn't working INFRASTRUCTURE labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working INFRASTRUCTURE
Projects
None yet
Development

No branches or pull requests

1 participant