Browse Source

Ticket #278 - Schema replication update failed: Invalid syntax

https://fedorahosted.org/389/ticket/278
Resolves: Ticket #278
Bug Description: Schema replication update failed: Invalid syntax
Reviewed by: nkinder (Thanks!)
Branch: master
Fix Description: Schema replication apparently either sends everything or
re-reads everything.  unhashed#user#password is an invalid attribute
name - # is not allowed in an attribute name.  The fix is to explicitly
allow this particular attribute name.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Rich Megginson 14 years ago
parent
commit
b4c3983cad
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ldap/servers/slapd/schema.c

+ 5 - 0
ldap/servers/slapd/schema.c

@@ -3644,6 +3644,11 @@ schema_check_name(char *name, PRBool isAttribute, char *errorbuf,
 	return 0;
   }
 
+  if (!strcasecmp(name, PSEUDO_ATTR_UNHASHEDUSERPASSWORD)) {
+      /* explicitly allow this badly named attribute */
+      return 1;
+  }
+
   /* attribute names must begin with a letter */
   if ( (isascii (name[0]) == 0) || (isalpha (name[0]) == 0)) {
 	if ( (strlen(name) + 80) < BUFSIZ ) {