From: Peter Palfrader Date: Fri, 23 May 2008 08:00:32 +0000 (+0200) Subject: merge from alioth: X-Git-Tag: userdir-ldap-0.3.31~3 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=3104028493422257dbb8583d6f3e61f87c2bdb08;hp=312577e396c70978c657692329e3fb004c8efddf merge from alioth: Make ud-useradd also not use hardcoded path Use sync_keyrings from config instead of hardcoded list --- diff --git a/debian/changelog b/debian/changelog index b717ecb..2c3b48f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +userdir-ldap (0.3.XX) Xnstable; urgency=low + + [ Joerg Jaspert ] + * Use sync_keyrings from config file in ud-generate instead of a + hardcoded list + * Use add_keyrings from config file in ud-useradd instead of a + hardcoded list + + -- Peter Palfrader Fri, 23 May 2008 09:59:15 +0200 + userdir-ldap (0.3.30) unstable; urgency=low * When we touch usePassword in ud-info or ud-mailgate we now also diff --git a/ud-generate b/ud-generate index 5e5aecf..17e54b3 100755 --- a/ud-generate +++ b/ud-generate @@ -38,8 +38,7 @@ CurrentHost = ""; EmailCheck = re.compile("^([^ <>@]+@[^ ,<>@]+)?$"); BSMTPCheck = re.compile(".*mx 0 (gluck)\.debian\.org\..*",re.DOTALL); DNSZone = ".debian.net" -Keyrings = [ "/org/keyring.debian.org/keyrings/debian-keyring.gpg", - "/org/keyring.debian.org/keyrings/debian-keyring.pgp" ] +Keyrings = ConfModule.sync_keyrings.split(":") def safe_makedirs(dir): try: diff --git a/ud-useradd b/ud-useradd index 494c348..f5c1fbc 100755 --- a/ud-useradd +++ b/ud-useradd @@ -70,7 +70,7 @@ for (switch, val) in options: l = passwdAccessLDAP(LDAPServer, BaseDn, AdminUser) # Locate the key of the user we are adding -SetKeyrings(["/org/keyring.debian.org/keyrings/debian-keyring.gpg"]) +SetKeyrings(ConfModule.add_keyrings.split(":")) while (1): Foo = raw_input("Who are you going to add (for a GPG search)? "); if Foo == "": diff --git a/userdir-ldap.conf b/userdir-ldap.conf index 98a4c28..090ac5a 100644 --- a/userdir-ldap.conf +++ b/userdir-ldap.conf @@ -42,7 +42,12 @@ passdir = "/etc/userdir-ldap/"; # GPG Things gpg = "/usr/bin/gpg"; +# The whole set of all keyrings keyrings = "/org/keyring.debian.org/keyrings/debian-keyring.gpg:/org/keyring.debian.org/keyrings/debian-keyring.pgp:/org/keyring.debian.org/keyrings/removed-keys.gpg:/org/keyring.debian.org/keyrings/removed-keys.pgp:/home/jgg/keys/extrakeys.gpg:/home/jgg/keys/guest-keys.gpg"; +# Keyrings synced to other machines, if they need them +sync_keyrings = "/org/keyring.debian.org/keyrings/debian-keyring.gpg:/org/keyring.debian.org/keyrings/debian-keyring.pgp"; +# Keyrings used to search in when new developers get added +add_keyrings = "/org/keyring.debian.org/keyrings/debian-keyring.gpg"; # For the WEB interface webloginhtml = "login.html";