From cc302084ccf54fb8f067f8dd5d7f7c07ed50b019 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 16 Sep 2014 19:12:12 +0100 Subject: Temporary hack to work around LDAP server sync problem --- modules/openssh/templates/ldap-sshkey2file.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/openssh/templates/ldap-sshkey2file.py b/modules/openssh/templates/ldap-sshkey2file.py index e393e29b..ec7f7c7f 100755 --- a/modules/openssh/templates/ldap-sshkey2file.py +++ b/modules/openssh/templates/ldap-sshkey2file.py @@ -17,6 +17,12 @@ peopledn="ou=people,%s" % basedn ldap_servers.map! { |l| "'ldaps://#{l}'" } -%> uris=[<%= ldap_servers.join(", ") %>] +# Temporoary hack because ldap-slave-1 is out of sync... no idea how to resync it :( +# Ask me about it or look at results from: +# ldapsearch -H ldaps://ldap-slave-1.mageia.org -D uid=$USER,ou=People,dc=mageia,dc=org -W -b uid=blue_prawn,ou=People,dc=mageia,dc=org +# vs +# ldapsearch -H ldaps://ldap-master.mageia.org -D uid=$USER,ou=People,dc=mageia,dc=org -W -b uid=blue_prawn,ou=People,dc=mageia,dc=org +uris=['ldaps://ldap-master.mageia.org'] random.shuffle(uris) uri = " ".join(uris) timeout=5 -- cgit v1.2.1