From: Lambright, L. (N-Averstar) <lin...@lm...> - 2000-12-14 03:20:28
|
Do you know where I can get a really good explaination of organizational units and how they work. I'm trying to write a set of scripts that will allow certain users administrator rights over their own groups but not over anyone else's groups. In order to do this I have created a set of organizational units each with groups and subgroups inside of them. All users are then created in the People organizational unit and added as members to one or more groups inside other organizational units. I need to be able to list the users in each organizational unit and whether they are in an admin group in that unit. Then we give those admins rights to move users from group to group or to remove the user from their group or from their organizational unit without actually removing the person from the directory server or from other groups or other organizational units. These administrators also need to be able to make and remove groups in their organizational unit and add users to the directory server if the user does not already exist. The problems that we have run into are all with perl-ldap giving us information on organizational units and groups. Probably because we don't know how to ask correctly. Thank you for your help Linda > ---------- > From: Mark Wilcox[SMTP:mew...@un...] > Sent: Wednesday, December 13, 2000 6:15 PM > To: Lambright, Linda (N-Averstar) > Cc: per...@li... > Subject: Re: uid's associated with a particular orgranizational unit > > sounds like you've set your scope incorrectly. > $mesg = > $ldap->search( > base=> "ou=people,dc=acme,dc=com", > scope => "sub", > filter => "objectclass=person" > ); > should do it. > > Note that unless you've got a very small number of people, you'll need to > either > be binded as the directory super-user account or use a virtual list view > to see > all of them. > > Mark > > "Lambright, Linda (N-Averstar)" wrote: > > > I have created several users in the People organizational unit. I am > trying > > to find out how to get a list of all of those uid's. However if I ask > for > > ou=People all I get is the entry for the ou People. Can anyone help me > with > > this? Even when I use the server console to do the search it comes up > with > > no entries. However the ldif file clearly shows all of the users with > > ou=People. I guess I don't clealy understand the concept of the > > organizational unit object. > > > > Linda Lambright > |