Allow '-' on RDN name when copying
authorGiacomo Tenaglia <Giacomo.Tenaglia@cern.ch>
Tue, 22 Mar 2011 13:12:49 +0100
changeset 14 b8fae8fb7942
parent 13 d7975e514b2a
child 15 f6157d378459
Allow '-' on RDN name when copying
shelldap
--- a/shelldap	Mon Feb 21 17:08:59 2011 -0800
+++ b/shelldap	Tue Mar 22 13:12:49 2011 +0100
@@ -1065,7 +1065,7 @@
 	# perhaps there is a better way to do this...?
 	#
 	my ( $uniqkey, $uniqval ) = ( $1, $2 )
-	  if $d_dn =~ /^([\.\w]+)(?:\s+)?=(?:\s+)?([\.\-\s\w]+),?/;
+	  if $d_dn =~ /^([\.\w\-]+)(?:\s+)?=(?:\s+)?([\.\-\s\w]+),?/;
 	unless ( $uniqkey && $uniqval ) {
 		print "Unable to parse unique values from rdn.\n";
 		return;