Recognise ecdsa and ed25519 ssh keys
authorRaphael Geissert <atomo64@gmail.com>
Sun, 3 May 2015 18:56:25 +0000 (20:56 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 23 May 2015 08:11:31 +0000 (10:11 +0200)
Signed-off-by: Peter Palfrader <peter@palfrader.org>
userdir_ldap.py

index b559199..29e5e7b 100644 (file)
@@ -84,7 +84,7 @@ GroupObjectClasses = ("top", "debianGroup")
 # SSH Key splitting. The result is:
 # (options,size,modulous,exponent,comment)
 SSHAuthSplit = re.compile('^(.* )?(\d+) (\d+) (\d+) ?(.+)$');
-SSH2AuthSplit = re.compile('^(.* )?ssh-(dss|rsa) ([a-zA-Z0-9=/+]+) ?(.+)$');
+SSH2AuthSplit = re.compile('^(.* )?ssh-(dss|rsa|ecdsa-sha2-nistp(?:256|384|521)|ed25519) ([a-zA-Z0-9=/+]+) ?(.+)$');
 #'^([^\d](?:[^ "]+(?:".*")?)*)? ?(\d+) (\d+) (\d+) (.+)$');
 
 AddressSplit = re.compile("(.*).*<([^@]*)@([^>]*)>");