summaryrefslogtreecommitdiff
path: root/source3/utils/pdbedit.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-03-23 14:20:21 +0000
committerVolker Lendecke <vlendec@samba.org>2003-03-23 14:20:21 +0000
commit7d4bfa0eda4f79f55950d4089e636eecc37975f6 (patch)
tree53932bcbc3d1e4e314a636224a7030845dd73ea5 /source3/utils/pdbedit.c
parentb8d83f7cdb5aed2bdcc185388f148e2fe4726bf8 (diff)
downloadsamba-7d4bfa0eda4f79f55950d4089e636eecc37975f6.tar.gz
samba-7d4bfa0eda4f79f55950d4089e636eecc37975f6.tar.bz2
samba-7d4bfa0eda4f79f55950d4089e636eecc37975f6.zip
Implement abartlet's suggestion to add attribs to ldap if they
are 'SET' when adding the account. I really don't like passing flags down to inner routines and complicated if/else conditions, but this time he might be right. ;-) Volker (This used to be commit 339c14906802db6ddb59f07a0c71dcc3c73cc3d6)
Diffstat (limited to 'source3/utils/pdbedit.c')
-rw-r--r--source3/utils/pdbedit.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 4c97903f51..99d3e01fd2 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -69,12 +69,6 @@ static int export_database (struct pdb_context *in, struct pdb_context *out) {
}
while (NT_STATUS_IS_OK(in->pdb_getsampwent(in, user))) {
- int i;
-
- for (i=0; i<PDB_COUNT; i++) {
- pdb_set_init_flags(user, i, PDB_CHANGED);
- }
-
out->pdb_add_sam_account(out, user);
if (!NT_STATUS_IS_OK(pdb_reset_sam(user))){
fprintf(stderr, "Can't reset SAM_ACCOUNT!\n");