<p>Hi All,</p>
<p>Trying to figure out if an account is or isn't locked, I've tryied:</p>
<p>(Python shell)<br />
>>> server.compare_s("uid=zaza.zozo.zozo,ou=UnitA,o=MyOrg", 'nsAccountLock', 'true')<br />
Traceback (most recent call last):<br />
  File "<stdin>", line 1, in <module><br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 255, in compare_s<br />
    return self.compare_ext_s(dn,attr,value,None,None)<br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 244, in compare_ext_s<br />
    self.result(msgid,all=1,timeout=self.timeout)<br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 428, in result<br />
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)<br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 432, in result2<br />
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)<br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 438, in result3<br />
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)<br />
  File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 96, in _ldap_call<br />
    result = func(*args,**kwargs)<br />
ldap.NO_SUCH_ATTRIBUTE: {'desc': 'No such attribute'}</p>
<p>I got the same code using PHP, there must be something with server configuration or is it a "bad feature"?</p>
<p>I had many servers here, all with the same problem.</p>
<p>Kind regards,</p><hr style="border:dotted 1px silver; width:90%; border:dotted 1px silver;"><p><span style="color: #000080"><strong>Daniel Cristian Cruz</strong><br />
</span><strong>Administrador de Banco de Dados<br />
<strong>Direção Regional - </strong>Núcleo de Tecnologia da Informação<br />
SENAI - SC<br />
Telefone: 48-3239-1422 (ramal 1422)</strong></p>