summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_xml.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-24 21:04:03 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-24 21:04:03 +0000
commite806761ff5a2b4c44edf85230001aa4234e224d1 (patch)
treedff1a9c8a61f522019ac6ecc75f31ef404c8a623 /source3/passdb/pdb_xml.c
parent05793cacef63b8bad40a2040ea2fe8e34ec08256 (diff)
downloadsamba-e806761ff5a2b4c44edf85230001aa4234e224d1.tar.gz
samba-e806761ff5a2b4c44edf85230001aa4234e224d1.tar.bz2
samba-e806761ff5a2b4c44edf85230001aa4234e224d1.zip
Don't store UID or GID
(This used to be commit a986076a743fad31efac664fc16337e2d1165917)
Diffstat (limited to 'source3/passdb/pdb_xml.c')
-rw-r--r--source3/passdb/pdb_xml.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/passdb/pdb_xml.c b/source3/passdb/pdb_xml.c
index 26e722dea1..4a8f622cce 100644
--- a/source3/passdb/pdb_xml.c
+++ b/source3/passdb/pdb_xml.c
@@ -86,17 +86,11 @@ BOOL parseUser(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur, SAM_ACCOUNT * u)
string_to_sid(&sid, tmp);
pdb_set_user_sid(u, &sid, PDB_SET);
}
- tmp = xmlGetProp(cur, "uid");
- if (tmp)
- pdb_set_uid(u, atol(tmp), PDB_SET);
pdb_set_username(u, xmlGetProp(cur, "name"), PDB_SET);
/* We don't care what the top level element name is */
cur = cur->xmlChildrenNode;
while (cur != NULL) {
if ((!strcmp(cur->name, "group")) && (cur->ns == ns)) {
- tmp = xmlGetProp(cur, "gid");
- if (tmp)
- pdb_set_gid(u, atol(tmp), PDB_SET);
tmp = xmlGetProp(cur, "sid");
if (tmp){
string_to_sid(&sid, tmp);
@@ -406,8 +400,6 @@ static NTSTATUS xmlsam_add_sam_account(struct pdb_methods *methods, SAM_ACCOUNT
user = xmlNewChild(data->users, data->ns, "user", NULL);
xmlNewProp(user, "sid",
sid_to_string(sid_str, pdb_get_user_sid(u)));
- if (pdb_get_init_flags(u, PDB_UID) != PDB_DEFAULT)
- xmlNewProp(user, "uid", iota(pdb_get_uid(u)));
if (pdb_get_username(u) && strcmp(pdb_get_username(u), ""))
xmlNewProp(user, "name", pdb_get_username(u));
@@ -416,8 +408,6 @@ static NTSTATUS xmlsam_add_sam_account(struct pdb_methods *methods, SAM_ACCOUNT
xmlNewProp(cur, "sid",
sid_to_string(sid_str, pdb_get_group_sid(u)));
- if (pdb_get_init_flags(u, PDB_GID) != PDB_DEFAULT)
- xmlNewProp(cur, "gid", iota(pdb_get_gid(u)));
if (pdb_get_init_flags(u, PDB_LOGONTIME) != PDB_DEFAULT)
xmlNewChild(user, data->ns, "login_time",