Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
08-04-2010, 06:50 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2010
Posts: 13
Rep:
|
query on ldap server
I configured ldap server & client on centos,
then i connected centos and suse with network.
now want to get group of any user from this server via suse.
is it possible with perl scripts?
or i need to install other modules on suse or centos?(such as : pam,nss)
Thanks
Last edited by imhere; 08-04-2010 at 03:27 PM.
|
|
|
|
08-04-2010, 10:03 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
What does this mean?? Very confusing... do you mean you want to use groups on your ldap server? Generally it's just a case of setting groups in /etc/nsswitch.conf the same as you would for a user to use ldap as a information source. I've not a clkue what you think you'd achieve with a perl script in the only way I can interpret the post though, so I might be guessing totally wrong.
|
|
|
|
08-04-2010, 12:53 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2010
Posts: 13
Original Poster
Rep:
|
i have 2 node in my LAN ,one has suseos and another centos.
i wanna to my centos be ldap server so i config ldap on that,now i need (on suse) get some user's info such as groupname from this ldap server(on centos).
how do this?
|
|
|
|
08-04-2010, 01:17 PM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
well as i said, you'd configure /etc/nsswitch.conf to use ldap for group data (why only groups?? what about the users themselves?) and configure /etc/ldap.conf to go to the right server for ldap. I expect yast or whatever has clicky things to do this, but that should be the underlying files that need changing for what you *appear* to be asking.
|
|
|
|
08-04-2010, 02:32 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2010
Posts: 13
Original Poster
Rep:
|
I wanna to make a suselinux as a traffic shaper on my lan, so i need a ldap server(centos) that holds my users and their groups,and then i get group name of any user that logins my router(suselinux) and according to group name doing shaping(such as bandwidth management).
i just configured my ldap server without pam & nss.
i can login to ldap server(just on my centos) with any users that i define in ldap server. now i want to able that from any node in my lan can access internet via my router that gets user's info from ldap(and do tc).
how i do this on router ? (with perl is it possible? or is simpler)
Last edited by imhere; 08-04-2010 at 03:25 PM.
|
|
|
|
08-04-2010, 03:05 PM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
a router? user accounts? erm... nope you've lost me. A router would never have a clue what users traffic is passing through it.
Yet again though, I have to mention nsswitch.conf as you haven't acknowledge it at all despite me already telling you twice that that's the file you want to start with.
|
|
|
|
08-04-2010, 03:23 PM
|
#7
|
|
LQ Newbie
Registered: Aug 2010
Posts: 13
Original Poster
Rep:
|
I'm sorry
i wanna to make my suse linux as a traffic shaper(that plays rule of router).
thanks
|
|
|
|
08-04-2010, 04:13 PM
|
#8
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
right, that doesn't change the fact that a router doesn't recognise users. You'd do it at IP level, which very occasionally could be based on dynamic firewall rules and such, but that's a long way from where you are.
|
|
|
|
08-13-2010, 03:25 PM
|
#9
|
|
LQ Newbie
Registered: Aug 2010
Posts: 13
Original Poster
Rep:
|
tc rules
now i want to write some tc rules which control that any user download for example 2 GB per months.do i need a DB or tc rule itself does it?
Last edited by imhere; 08-14-2010 at 01:06 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|