Export ZS users to external LDAP server, etc…

Home Page Forums Network Management ZeroShell Export ZS users to external LDAP server, etc…

This topic contains 1 reply, has 0 voices, and was last updated by  paulo_m 4 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44264

    paulo_m
    Member

    Hello,

    This is actually a double question.

    1)
    We’ve just added a new NAS to our network; on that NAS we have an LDAP server running. I’d like to EXPORT all the users that we have on our ZS box to the LDAP server — is this possible?

    2)
    Ultimately, the idea is to get ZS’s RADIUS to use the external LDAP server (on the NAS) for authentication. I believe that this is possible, but all the reading and testing that I’ve done so far has simply drained my limited brain power… 🙂 Can anyone provide some good pointers on how to achieve this so that I can try to get back on track?

    Many thanks in anticipation for any support.

    #53781

    PatrickB
    Member

    Hello.

    I’m working on a way to do selective backups…

    You can easily extract from ZS LDAP using the command ldapsearch.

    This one will show all the categories:

    > ldapsearch -x -b ‘dc=yourdomain,dc=tld’ ‘(ou=*)’ ou -S ou | grep ou:
    (the final ‘:’ is expected).

    Result:


    ou: Aliases
    ou: Computers
    ou: DNS
    ou: Group
    ou: Hosts
    ou: Mounts
    ou: NAS
    ou: Netgroup
    ou: Networks
    ou: People
    ou: Protocols
    ou: Radius
    ou: Rpc
    ou: Services



    For your (1) the users are in People:

    > ldapsearch -x -u -b ‘ou=People,dc=yourdomain,dc=tld’ -S uid
    (if I remember properly, uid looks pertinent for People to sort on).

    Hope it can help.
    Best regards.

    #53782

    paulo_m
    Member

    Many thanks for the precious feedback and apologies for the delay in acknowledging this. I’ll try this out now.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.