diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-09 22:09:41 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-09 22:40:36 +0200 |
commit | b660e51decaa1da99bce7eac80e6a6fad69b6dcb (patch) | |
tree | 41cbfc9436bca3189c07a916ffb2c45eab9b1c3c /source3 | |
parent | 078443bc672ad5dd02fd47c91f52173b0879102e (diff) | |
download | samba-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')
-rw-r--r-- | source3/passdb/pdb_ads.c | 5 |
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, |