r9690: Extend test + fix several bugs
[sfrench/samba-autobuild/.git] / source4 / lib / ldb / samba / samba3sam.c
index 23f794d90bab39bfe280bb509ca13964212d5bd3..c1ac691e92c9174cd0ce1149e66f688d6c49e041 100644 (file)
@@ -214,8 +214,8 @@ const struct ldb_map_attribute samba3_attributes[] =
                .local_name = "unixName",
                .type = MAP_CONVERT,
                .u.convert.remote_name = "gidNumber",
-               .u.convert.convert_local = convert_unix_id2name,
-               .u.convert.convert_remote = convert_unix_name2id
+               .u.convert.convert_local = convert_unix_name2id,
+               .u.convert.convert_remote = convert_unix_id2name
        },
 
        /* uid -> unixName */
@@ -223,8 +223,8 @@ const struct ldb_map_attribute samba3_attributes[] =
                .local_name = "unixName",
                .type = MAP_CONVERT,
                .u.convert.remote_name = "uid",
-               .u.convert.convert_local = convert_unix_id2name,
-               .u.convert.convert_remote = convert_unix_name2id,
+               .u.convert.convert_local = convert_unix_name2id,
+               .u.convert.convert_remote = convert_unix_id2name,
        },
 
        /* displayName -> name */