LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   query on ldap server (https://www.linuxquestions.org/questions/linux-newbie-8/query-on-ldap-server-824104/)

imhere 08-04-2010 06:50 AM

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

acid_kewpie 08-04-2010 10:03 AM

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.

imhere 08-04-2010 12:53 PM

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?

acid_kewpie 08-04-2010 01:17 PM

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.

imhere 08-04-2010 02:32 PM

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)

acid_kewpie 08-04-2010 03:05 PM

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.

imhere 08-04-2010 03:23 PM

I'm sorry
i wanna to make my suse linux as a traffic shaper(that plays rule of router).
thanks

acid_kewpie 08-04-2010 04:13 PM

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.

imhere 08-13-2010 03:25 PM

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?


All times are GMT -5. The time now is 10:56 PM.