]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Align tldap_add and tldap_add_send
authorVolker Lendecke <vl@samba.org>
Thu, 10 Feb 2011 21:12:14 +0000 (22:12 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 10 Feb 2011 21:34:01 +0000 (22:34 +0100)
source3/include/tldap.h
source3/lib/tldap.c
source3/passdb/pdb_ads.c

index cd502985698e2474025d9a70cd506da9bf4cf6af..d1cb57e50e5e5d63381b4924ee6000b175c99add 100644 (file)
@@ -123,7 +123,7 @@ struct tevent_req *tldap_add_send(TALLOC_CTX *mem_ctx,
                                  int num_cctrls);
 int tldap_add_recv(struct tevent_req *req);
 int tldap_add(struct tldap_context *ld, const char *dn,
-             int num_attributes, struct tldap_mod *attributes,
+             struct tldap_mod *attributes, int num_attributes,
              struct tldap_control *sctrls, int num_sctrls,
              struct tldap_control *cctrls, int num_cctrls);
 
index f97dc7c11d78c31d1c5defd8ed865a8b0eb26bc8..f9f9fe5e541231dd9f28d82c40673ac4349cfba0 100644 (file)
@@ -2121,7 +2121,7 @@ int tldap_add_recv(struct tevent_req *req)
 }
 
 int tldap_add(struct tldap_context *ld, const char *dn,
-             int num_attributes, struct tldap_mod *attributes,
+             struct tldap_mod *attributes, int num_attributes,
              struct tldap_control *sctrls, int num_sctrls,
              struct tldap_control *cctrls, int num_cctrls)
 {
index f153c9e0ce922c7ac773cab186b5123e8f60be68..bf1aa79a52418eb2de0ad5f867f97b7259d719b4 100644 (file)
@@ -491,7 +491,7 @@ static NTSTATUS pdb_ads_create_user(struct pdb_methods *m,
        }
 
 
-       rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+       rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
        if (rc != TLDAP_SUCCESS) {
                DEBUG(10, ("ldap_add failed %s\n",
                           tldap_errstr(talloc_tos(), ld, rc)));
@@ -779,7 +779,7 @@ static NTSTATUS pdb_ads_create_dom_group(struct pdb_methods *m,
                return NT_STATUS_NO_MEMORY;
        }
 
-       rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+       rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
        if (rc != TLDAP_SUCCESS) {
                DEBUG(10, ("ldap_add failed %s\n",
                           tldap_errstr(talloc_tos(), state->ld, rc)));
@@ -1164,7 +1164,7 @@ static NTSTATUS pdb_ads_create_alias(struct pdb_methods *m,
                return NT_STATUS_NO_MEMORY;
        }
 
-       rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+       rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
        if (rc != TLDAP_SUCCESS) {
                DEBUG(10, ("ldap_add failed %s\n",
                           tldap_errstr(talloc_tos(), state->ld, rc)));