Author: rhafer Date: Fri Sep 25 14:57:29 2009 New Revision: 58779 URL: http://svn.opensuse.org/viewcvs/yast?rev=58779&view=rev Log: Previous fix was a bit too restrictive Modified: trunk/ldap-server/src/lib/slapd-config.cpp Modified: trunk/ldap-server/src/lib/slapd-config.cpp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/lib/slapd-config.cpp?rev=58779&r1=58778&r2=58779&view=diff ============================================================================== --- trunk/ldap-server/src/lib/slapd-config.cpp (original) +++ trunk/ldap-server/src/lib/slapd-config.cpp Fri Sep 25 14:57:29 2009 @@ -1271,7 +1271,7 @@ { throw std::runtime_error( "Entry '" + dn + "' has no 'cn' Attribute." ); } - if ( (dn.size() <= schemabase.size()) || + if ( (dn.size() < schemabase.size()) || (dn.compare( dn.size()-schemabase.size(), schemabase.size(), schemabase )) ) { throw std::runtime_error( "Entry '" + dn + "' is not a child of '" + schemabase + "'." ); @@ -1301,7 +1301,7 @@ { throw std::runtime_error( "Entry '" + dn + "' has no 'cn' Attribute." ); } - if ( (dn.size() <= schemabase.size()) || + if ( (dn.size() < schemabase.size()) || (dn.compare( dn.size()-schemabase.size(), schemabase.size(), schemabase )) ) { throw std::runtime_error( "Entry '" + dn + "' is not a child of '" + schemabase + "'." ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org