瀏覽代碼

Merge pull request #200 from ckarawani/master

SEC-2757: Removed assertion of 'sn' when creating LdapUserDetails
Rob Winch 10 年之前
父節點
當前提交
5f84902e72
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      ldap/src/main/java/org/springframework/security/ldap/userdetails/Person.java

+ 0 - 1
ldap/src/main/java/org/springframework/security/ldap/userdetails/Person.java

@@ -138,7 +138,6 @@ public class Person extends LdapUserDetailsImpl {
 
 		public LdapUserDetails createUserDetails() {
 			Person p = (Person) super.createUserDetails();
-			Assert.hasLength(p.sn);
 			Assert.notNull(p.cn);
 			Assert.notEmpty(p.cn);
 			// TODO: Check contents for null entries