www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Export ZS users to external LDAP server, etc...

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
paulo_m



Joined: 09 Apr 2015
Posts: 4

PostPosted: Thu Apr 09, 2015 10:29 am    Post subject: Export ZS users to external LDAP server, etc... Reply with quote

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... Smile 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.
Back to top
View user's profile Send private message
PatrickB



Joined: 03 Nov 2012
Posts: 46

PostPosted: Wed Apr 15, 2015 4:30 pm    Post subject: Extract from ZS LDAP Reply with quote

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.
Back to top
View user's profile Send private message
paulo_m



Joined: 09 Apr 2015
Posts: 4

PostPosted: Wed Apr 22, 2015 3:27 pm    Post subject: Reply with quote

Many thanks for the precious feedback and apologies for the delay in acknowledging this. I'll try this out now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group