LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 08-04-2010, 06:50 AM   #1
imhere
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Rep: Reputation: 0
Question 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.
 
Old 08-04-2010, 10:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 08-04-2010, 12:53 PM   #3
imhere
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
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?
 
Old 08-04-2010, 01:17 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 08-04-2010, 02:32 PM   #5
imhere
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 08-04-2010, 03:05 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 08-04-2010, 03:23 PM   #7
imhere
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
I'm sorry
i wanna to make my suse linux as a traffic shaper(that plays rule of router).
thanks
 
Old 08-04-2010, 04:13 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 08-13-2010, 03:25 PM   #9
imhere
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Question 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron does LDAP query for local user fantasygoat Linux - Server 1 05-20-2010 09:08 AM
[Ruby] simple LDAP query noir911 Programming 4 10-29-2008 11:38 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LDAP Query cjagdish69 Linux - Server 0 11-18-2006 01:16 AM
How can I manually query a ldap server from terminal? randomx Linux - General 2 10-07-2003 01:04 PM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration