s3/ldap: also handle DirX return codes
authorBjörn Jacke <bj@sernet.de>
Thu, 7 May 2009 15:50:34 +0000 (17:50 +0200)
committerBjörn Jacke <bj@sernet.de>
Thu, 7 May 2009 22:33:30 +0000 (00:33 +0200)
source3/passdb/pdb_ldap.c

index 01d3da878623ea2ec85fb7546724563469c8e646..01b2eeced75af3c16e069adf13f3e6f111d6f8fa 100644 (file)
@@ -3270,6 +3270,7 @@ static NTSTATUS ldapsam_delete_group_mapping_entry(struct pdb_methods *methods,
                                                groupmap_attr_list_to_delete));
  
        if ((rc == LDAP_NAMING_VIOLATION) ||
+           (rc == LDAP_NOT_ALLOWED_ON_RDN) ||
            (rc == LDAP_OBJECT_CLASS_VIOLATION)) {
                const char *attrs[] = { "sambaGroupType", "description",
                                        "displayName", "sambaSIDList",
@@ -3284,6 +3285,7 @@ static NTSTATUS ldapsam_delete_group_mapping_entry(struct pdb_methods *methods,
        }
 
        if ((rc == LDAP_NAMING_VIOLATION) ||
+           (rc == LDAP_NOT_ALLOWED_ON_RDN) ||
            (rc == LDAP_OBJECT_CLASS_VIOLATION)) {
                const char *attrs[] = { "sambaGroupType", "description",
                                        "displayName", "sambaSIDList",