Skip to content

User list Ldapclient error with Windows Server 2012 #7650

@stephdl

Description

@stephdl

Steps to reproduce

  • Configure a Windows Server as a remote LDAP for NethServer
  • Trigger a user listing operation that calls Ldapclient.factory(**domain).list_users(extra_info=True)

Expected behavior
The operation completes successfully and must_change is correctly handled for all users.

Actual behavior
Traceback error occurs:

Traceback (most recent call last):
  File "/var/lib/nethserver/cluster/actions/list-domain-users/50list_users", line 33, in <module>
    users = Ldapclient.factory(**domain).list_users(extra_info=True)
  File "/usr/local/agent/pypkg/agent/ldapclient/ad.py", line 180, in list_users
    user['must_change'] = (pwd_changed_time.timestamp() == -11644473600)
AttributeError: 'list' object has no attribute 'timestamp'

Components
Core version : https://github.com/NethServer/ns8-core/releases/tag/3.11.1

See also


thanks to @mrmarkuz and Charles Steaderman

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions