Linux - NewbieThis 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!
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.
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)
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.
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?
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.
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)
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.