summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-09 22:09:41 +0200
committerVolker Lendecke <vl@samba.org>2009-06-09 22:40:36 +0200
commitb660e51decaa1da99bce7eac80e6a6fad69b6dcb (patch)
tree41cbfc9436bca3189c07a916ffb2c45eab9b1c3c /source3/passdb
parent078443bc672ad5dd02fd47c91f52173b0879102e (diff)
downloadsamba-b660e51decaa1da99bce7eac80e6a6fad69b6dcb.tar.gz
samba-b660e51decaa1da99bce7eac80e6a6fad69b6dcb.tar.bz2
samba-b660e51decaa1da99bce7eac80e6a6fad69b6dcb.zip
If there are no mods, don't bother the ldap server
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ads.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index c3e9189645..8e30dfb5bc 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -475,6 +475,11 @@ static NTSTATUS pdb_ads_update_sam_account(struct pdb_methods *m,
return NT_STATUS_NO_MEMORY;
}
+ if (num_mods == 0) {
+ /* Nothing to do, just return success */
+ return NT_STATUS_OK;
+ }
+
rc = tldap_modify(state->ld, priv->dn, num_mods, mods, NULL, NULL);
if (rc != TLDAP_SUCCESS) {
DEBUG(10, ("ldap_modify for %s failed: %s\n", priv->dn,