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 |
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) |
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. |
I'm sorry
i wanna to make my suse linux as a traffic shaper(that plays rule of router). thanks |
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.
|
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 08:42 PM. |