summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-03-23 14:19:13 +0000
committerVolker Lendecke <vlendec@samba.org>2003-03-23 14:19:13 +0000
commitb5762d9937ac919e50e57d97eb26cbb1d3ae2757 (patch)
treef5e7dacfa027732b2bac2929c332fd555becaa3e /source3/utils
parentdc0ce6f158ec9d9bd74144f78fc0b955bb00a7f1 (diff)
downloadsamba-b5762d9937ac919e50e57d97eb26cbb1d3ae2757.tar.gz
samba-b5762d9937ac919e50e57d97eb26cbb1d3ae2757.tar.bz2
samba-b5762d9937ac919e50e57d97eb26cbb1d3ae2757.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 80d2578108da14f60133df3a308b867beb27e920)
Diffstat (limited to 'source3/utils')
-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 3dfc6206b4..f373adcb0a 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");