r4335: Fix some potential memleaks, implement CreateDomAlias. Hmmmm. Isn't there
[samba.git] / source4 / dsdb / samdb / samdb.c
index 7501d94ae61487e00fafdcf9dbdfa11db9cfc6b9..209599b9dc977bb2c4353440fe1e89f82a71fc2f 100644 (file)
@@ -566,7 +566,8 @@ int samdb_copy_template(void *ctx, TALLOC_CTX *mem_ctx,
                        if (strcasecmp(el->name, "objectClass") == 0 &&
                            (strcasecmp((char *)el->values[j].data, "Template") == 0 ||
                             strcasecmp((char *)el->values[j].data, "userTemplate") == 0 ||
-                            strcasecmp((char *)el->values[j].data, "groupTemplate") == 0)) {
+                            strcasecmp((char *)el->values[j].data, "groupTemplate") == 0 ||
+                            strcasecmp((char *)el->values[j].data, "aliasTemplate") == 0)) {
                                continue;
                        }
                        samdb_msg_add_string(ctx, mem_ctx, msg, el->name,