📄 samba3sam.c
字号:
.type = MAP_IGNORE, }, /* codePage */ { .local_name = "codePage", .type = MAP_IGNORE, }, /* dNSHostName */ { .local_name = "dNSHostName", .type = MAP_IGNORE, }, /* dnsDomain */ { .local_name = "dnsDomain", .type = MAP_IGNORE, }, /* dnsRoot */ { .local_name = "dnsRoot", .type = MAP_IGNORE, }, /* countryCode */ { .local_name = "countryCode", .type = MAP_IGNORE, }, /* nTMixedDomain */ { .local_name = "nTMixedDomain", .type = MAP_IGNORE, }, /* operatingSystem */ { .local_name = "operatingSystem", .type = MAP_IGNORE, }, /* operatingSystemVersion */ { .local_name = "operatingSystemVersion", .type = MAP_IGNORE, }, /* servicePrincipalName */ { .local_name = "servicePrincipalName", .type = MAP_IGNORE, }, /* msDS-Behavior-Version */ { .local_name = "msDS-Behavior-Version", .type = MAP_IGNORE, }, /* msDS-KeyVersionNumber */ { .local_name = "msDS-KeyVersionNumber", .type = MAP_IGNORE, }, /* msDs-masteredBy */ { .local_name = "msDs-masteredBy", .type = MAP_IGNORE, }, /* ou */ { .local_name = "ou", .type = MAP_KEEP, }, /* dc */ { .local_name = "dc", .type = MAP_KEEP, }, /* description */ { .local_name = "description", .type = MAP_KEEP, }, /* sambaSID -> objectSid*/ { .local_name = "objectSid", .type = MAP_CONVERT, .u = { .convert = { .remote_name = "sambaSID", .convert_local = decode_sid, .convert_remote = encode_sid, }, }, }, /* sambaPwdLastSet -> pwdLastSet */ { .local_name = "pwdLastSet", .type = MAP_RENAME, .u = { .rename = { .remote_name = "sambaPwdLastSet", }, }, }, /* accountExpires */ { .local_name = "accountExpires", .type = MAP_IGNORE, }, /* adminCount */ { .local_name = "adminCount", .type = MAP_IGNORE, }, /* canonicalName */ { .local_name = "canonicalName", .type = MAP_IGNORE, }, /* createTimestamp */ { .local_name = "createTimestamp", .type = MAP_IGNORE, }, /* creationTime */ { .local_name = "creationTime", .type = MAP_IGNORE, }, /* dMDLocation */ { .local_name = "dMDLocation", .type = MAP_IGNORE, }, /* fSMORoleOwner */ { .local_name = "fSMORoleOwner", .type = MAP_IGNORE, }, /* forceLogoff */ { .local_name = "forceLogoff", .type = MAP_IGNORE, }, /* instanceType */ { .local_name = "instanceType", .type = MAP_IGNORE, }, /* invocationId */ { .local_name = "invocationId", .type = MAP_IGNORE, }, /* isCriticalSystemObject */ { .local_name = "isCriticalSystemObject", .type = MAP_IGNORE, }, /* localPolicyFlags */ { .local_name = "localPolicyFlags", .type = MAP_IGNORE, }, /* lockOutObservationWindow */ { .local_name = "lockOutObservationWindow", .type = MAP_IGNORE, }, /* lockoutDuration */ { .local_name = "lockoutDuration", .type = MAP_IGNORE, }, /* lockoutThreshold */ { .local_name = "lockoutThreshold", .type = MAP_IGNORE, }, /* logonCount */ { .local_name = "logonCount", .type = MAP_IGNORE, }, /* masteredBy */ { .local_name = "masteredBy", .type = MAP_IGNORE, }, /* maxPwdAge */ { .local_name = "maxPwdAge", .type = MAP_IGNORE, }, /* member */ { .local_name = "member", .type = MAP_IGNORE, }, /* memberOf */ { .local_name = "memberOf", .type = MAP_IGNORE, }, /* minPwdAge */ { .local_name = "minPwdAge", .type = MAP_IGNORE, }, /* minPwdLength */ { .local_name = "minPwdLength", .type = MAP_IGNORE, }, /* modifiedCount */ { .local_name = "modifiedCount", .type = MAP_IGNORE, }, /* modifiedCountAtLastProm */ { .local_name = "modifiedCountAtLastProm", .type = MAP_IGNORE, }, /* modifyTimestamp */ { .local_name = "modifyTimestamp", .type = MAP_IGNORE, }, /* nCName */ { .local_name = "nCName", .type = MAP_IGNORE, }, /* nETBIOSName */ { .local_name = "nETBIOSName", .type = MAP_IGNORE, }, /* oEMInformation */ { .local_name = "oEMInformation", .type = MAP_IGNORE, }, /* privilege */ { .local_name = "privilege", .type = MAP_IGNORE, }, /* pwdHistoryLength */ { .local_name = "pwdHistoryLength", .type = MAP_IGNORE, }, /* pwdProperties */ { .local_name = "pwdProperties", .type = MAP_IGNORE, }, /* rIDAvailablePool */ { .local_name = "rIDAvailablePool", .type = MAP_IGNORE, }, /* revision */ { .local_name = "revision", .type = MAP_IGNORE, }, /* ridManagerReference */ { .local_name = "ridManagerReference", .type = MAP_IGNORE, }, /* sAMAccountType */ { .local_name = "sAMAccountType", .type = MAP_IGNORE, }, /* sPNMappings */ { .local_name = "sPNMappings", .type = MAP_IGNORE, }, /* serverReference */ { .local_name = "serverReference", .type = MAP_IGNORE, }, /* serverState */ { .local_name = "serverState", .type = MAP_IGNORE, }, /* showInAdvancedViewOnly */ { .local_name = "showInAdvancedViewOnly", .type = MAP_IGNORE, }, /* subRefs */ { .local_name = "subRefs", .type = MAP_IGNORE, }, /* systemFlags */ { .local_name = "systemFlags", .type = MAP_IGNORE, }, /* uASCompat */ { .local_name = "uASCompat", .type = MAP_IGNORE, }, /* uSNChanged */ { .local_name = "uSNChanged", .type = MAP_IGNORE, }, /* uSNCreated */ { .local_name = "uSNCreated", .type = MAP_IGNORE, }, /* sambaPassword */ { .local_name = "sambaPassword", .type = MAP_IGNORE, }, /* userAccountControl */ { .local_name = "userAccountControl", .type = MAP_IGNORE, }, /* whenChanged */ { .local_name = "whenChanged", .type = MAP_IGNORE, }, /* whenCreated */ { .local_name = "whenCreated", .type = MAP_IGNORE, }, /* uidNumber */ { .local_name = "unixName", .type = MAP_CONVERT, .u = { .convert = { .remote_name = "uidNumber", .convert_local = lookup_uid, }, }, }, /* gidNumber. Perhaps make into generate so we can distinguish between * groups and accounts? */ { .local_name = "unixName", .type = MAP_CONVERT, .u = { .convert = { .remote_name = "gidNumber", .convert_local = lookup_gid, }, }, }, /* homeDirectory */ { .local_name = "unixName", .type = MAP_CONVERT, .u = { .convert = { .remote_name = "homeDirectory", .convert_local = lookup_homedir, }, }, }, { .local_name = NULL, }};/* the context init function */static int samba3sam_init(struct ldb_module *module){ int ret; ret = ldb_map_init(module, samba3_attributes, samba3_objectclasses, NULL, NULL, "samba3sam"); if (ret != LDB_SUCCESS) return ret; return ldb_next_init(module);}_PUBLIC_ const struct ldb_module_ops ldb_samba3sam_module_ops = { LDB_MAP_OPS .name = "samba3sam", .init_context = samba3sam_init,};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -