r14452: Sorry. Need more coffee....
authorGerald Carter <jerry@samba.org>
Wed, 15 Mar 2006 16:09:24 +0000 (16:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:31 +0000 (11:15 -0500)
* Fix sprintf() args when createing the group search filter.

source/passdb/pdb_ldap.c

index eb5d3c9c31d3f79cf728691c7ccb7d3d6ec647fd..c609ab89f7ad2e5c1c5f04079deef3acecf0f75d 100644 (file)
@@ -4291,7 +4291,7 @@ static BOOL ldapsam_search_grouptype(struct pdb_methods *methods,
        state->filter = talloc_asprintf(search->mem_ctx,
                                        "(&(objectclass=sambaGroupMapping)"
                                        "(sambaGroupType=%d)(sambaSID=%s)", 
-                                       sid_string_static(sid), type);
+                                       type, sid_string_static(sid));
        state->attrs = talloc_attrs(search->mem_ctx, "cn", "sambaSid",
                                    "displayName", "description",
                                    "sambaGroupType", NULL);