From e7c1895d0b2b8dbb8a07409012609c836c43f0c8 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Mon, 4 May 2009 06:30:21 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-server/trunk@1309 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_ldap.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/cl_ldap.py b/pym/cl_ldap.py index 94f6281..a67ff7b 100644 --- a/pym/cl_ldap.py +++ b/pym/cl_ldap.py @@ -10791,7 +10791,8 @@ with another option.")) for uid in memberUid: if not uid in uniqueUid: uniqueUid.append(uid) - searchRes[0][0][1]['memberUid'] = uniqueUid + if uniqueUid: + searchRes[0][0][1]['memberUid'] = uniqueUid for info in searchRes: for i in range(lenRetrAttrs): attr = retrAttrs[i] @@ -10988,7 +10989,8 @@ with another option.")) for uid in memberUid: if not uid in uniqueUid: uniqueUid.append(uid) - info[0][1]['memberUid'] = uniqueUid + if uniqueUid: + info[0][1]['memberUid'] = uniqueUid for attr in retrAttrs: if attr in info[0][1]: ldapValue = info[0][1][attr]