1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00

r9883: More nested initialiser fixes.

(This used to be commit 579d111478)
This commit is contained in:
Tim Potter
2005-09-01 08:56:37 +00:00
committed by Gerald (Jerry) Carter
parent b2c54c08bf
commit 23f68eda42

View File

@@ -140,88 +140,134 @@ const struct ldb_map_attribute samba3_attributes[] =
{ {
.local_name = "nextRid", .local_name = "nextRid",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaNextRid", .u = {
.rename = {
.remote_name = "sambaNextRid",
},
},
}, },
/* sambaBadPasswordTime -> badPasswordtime*/ /* sambaBadPasswordTime -> badPasswordtime*/
{ {
.local_name = "badPasswordTime", .local_name = "badPasswordTime",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaBadPasswordTime", .u = {
.rename = {
.remote_name = "sambaBadPasswordTime",
},
},
}, },
/* sambaLMPassword -> lmPwdHash*/ /* sambaLMPassword -> lmPwdHash*/
{ {
.local_name = "lmPwdHash", .local_name = "lmPwdHash",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaLMPassword", .u = {
.rename = {
.remote_name = "sambaLMPassword",
},
},
}, },
/* sambaGroupType -> groupType */ /* sambaGroupType -> groupType */
{ {
.local_name = "groupType", .local_name = "groupType",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaGroupType", .u = {
.rename = {
.remote_name = "sambaGroupType",
},
},
}, },
/* sambaNTPassword -> ntPwdHash*/ /* sambaNTPassword -> ntPwdHash*/
{ {
.local_name = "ntPwdHash", .local_name = "ntPwdHash",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaNTPassword", .u = {
.rename = {
.remote_name = "sambaNTPassword",
},
},
}, },
/* sambaPrimaryGroupSID -> primaryGroupID */ /* sambaPrimaryGroupSID -> primaryGroupID */
{ {
.local_name = "primaryGroupID", .local_name = "primaryGroupID",
.type = MAP_CONVERT, .type = MAP_CONVERT,
.u.convert.remote_name = "sambaPrimaryGroupSID", .u = {
.u.convert.convert_local = convert_rid_sid, .convert = {
.u.convert.convert_remote = convert_sid_rid, .remote_name = "sambaPrimaryGroupSID",
.convert_local = convert_rid_sid,
.convert_remote = convert_sid_rid,
},
},
}, },
/* sambaBadPasswordCount -> badPwdCount */ /* sambaBadPasswordCount -> badPwdCount */
{ {
.local_name = "badPwdCount", .local_name = "badPwdCount",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaBadPasswordCount", .u = {
.rename = {
.remote_name = "sambaBadPasswordCount",
},
},
}, },
/* sambaLogonTime -> lastLogon*/ /* sambaLogonTime -> lastLogon*/
{ {
.local_name = "lastLogon", .local_name = "lastLogon",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaLogonTime", .u = {
.rename = {
.remote_name = "sambaLogonTime",
},
},
}, },
/* sambaLogoffTime -> lastLogoff*/ /* sambaLogoffTime -> lastLogoff*/
{ {
.local_name = "lastLogoff", .local_name = "lastLogoff",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaLogoffTime", .u = {
.rename = {
.remote_name = "sambaLogoffTime",
},
},
}, },
/* gidNumber -> unixName */ /* gidNumber -> unixName */
{ {
.local_name = "unixName", .local_name = "unixName",
.type = MAP_CONVERT, .type = MAP_CONVERT,
.u.convert.remote_name = "gidNumber", .u = {
.u.convert.convert_local = convert_unix_name2id, .convert = {
.u.convert.convert_remote = convert_unix_id2name, .remote_name = "gidNumber",
},
},
}, },
/* uid -> unixName */ /* uid -> unixName */
{ {
.local_name = "unixName", .local_name = "unixName",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.convert.remote_name = "uid", .u = {
.convert = {
.remote_name = "uid",
},
},
}, },
/* displayName -> name */ /* displayName -> name */
{ {
.local_name = "name", .local_name = "name",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "displayName", .u = {
.rename = {
.remote_name = "displayName",
},
},
}, },
/* cn */ /* cn */
@@ -234,7 +280,11 @@ const struct ldb_map_attribute samba3_attributes[] =
{ {
.local_name = "sAMAccountName", .local_name = "sAMAccountName",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "uid", .u = {
.rename = {
.remote_name = "uid",
},
},
}, },
/* objectCategory */ /* objectCategory */
@@ -351,16 +401,24 @@ const struct ldb_map_attribute samba3_attributes[] =
{ {
.local_name = "objectSid", .local_name = "objectSid",
.type = MAP_CONVERT, .type = MAP_CONVERT,
.u.convert.remote_name = "sambaSID", .u = {
.u.convert.convert_local = decode_sid, .convert = {
.u.convert.convert_remote = encode_sid, .remote_name = "sambaSID",
.convert_local = decode_sid,
.convert_remote = encode_sid,
},
},
}, },
/* sambaPwdLastSet -> pwdLastSet */ /* sambaPwdLastSet -> pwdLastSet */
{ {
.local_name = "pwdLastSet", .local_name = "pwdLastSet",
.type = MAP_RENAME, .type = MAP_RENAME,
.u.rename.remote_name = "sambaPwdLastSet", .u = {
.rename = {
.remote_name = "sambaPwdLastSet",
},
},
}, },
/* accountExpires */ /* accountExpires */