From 5540e0888fd1083c71f66e02770879954ab4ab6d Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Fri, 28 Jun 2013 12:40:48 -0700 Subject: [PATCH] Add gpgkey, gpgfingerprint check when building the seed info --- gkeyldap/cli.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gkeyldap/cli.py b/gkeyldap/cli.py index 32f1f87..171767b 100644 --- a/gkeyldap/cli.py +++ b/gkeyldap/cli.py @@ -303,5 +303,15 @@ class Main(object): logger.error("A valid keyid or longkeyid was not found for") logger.error("developer: %s, %s : gpgkey = %s" %(info['uid'][0], info['cn'][0], gpgkey)) + else: + for x in [2, 3]: + if not keyinfo[x]: + continue + for y in keyinfo[x]: + index = len(y.lstrip('0x')) + if y.lstrip('0x') not in [x[-index:] for x in keyinfo[5]]: + logger.error('GPGKey and/or fingerprint error in' + + ' ladap info for: ' + info['uid'][0]) + logger.error(str(keyinfo)) return keyinfo -- 2.26.2