nsaccountlock compare error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DANIEL CRISTIAN CRUZ wrote:
>
> Hi All,
>
> Trying to figure out if an account is or isn't locked, I've tryied:
>
> (Python shell)
> >>> server.compare_s("uid=zaza.zozo.zozo,ou=UnitA,o=MyOrg", 
> 'nsAccountLock', 'true')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 
> 255, in compare_s
>     return self.compare_ext_s(dn,attr,value,None,None)
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 
> 244, in compare_ext_s
>     self.result(msgid,all=1,timeout=self.timeout)
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 
> 428, in result
>     res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 
> 432, in result2
>     res_type, res_data, res_msgid, srv_ctrls = 
> self.result3(msgid,all,timeout)
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 
> 438, in result3
>     ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
>   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 96, 
> in _ldap_call
>     result = func(*args,**kwargs)
> ldap.NO_SUCH_ATTRIBUTE: {'desc': 'No such attribute'}
>
> I got the same code using PHP, there must be something with server 
> configuration or is it a "bad feature"?
>
If there is no such attribute, then the account is enabled.  The account 
is only disabled if the attribute is present AND set to true.
>
> I had many servers here, all with the same problem.
>
> Kind regards,
>
> ------------------------------------------------------------------------
>
> *Daniel Cristian Cruz*
> *Administrador de Banco de Dados
> *Dire??o Regional - *N?cleo de Tecnologia da Informa??o
> SENAI - SC
> Telefone: 48-3239-1422 (ramal 1422)*
>
> ------------------------------------------------------------------------
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>   


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3258 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20081212/70f70b28/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux