01hanstu Posted January 21, 2011 Share Posted January 21, 2011 Hi, I know very little about binding PHP to AD. At the minute it is setup to Authenticate against AD (Via IIS), then from the that I have the following: Declare's the Logon_Name variable, so that it can be used to 'print' buttons, and links i.e. if ($logon_name==("Administrator")); {echo admin link here'}; $logon_name = basename($_SERVER['AUTH_USER']); What I would ideally like to do is be able to find the group the user is a member of, this way we can create custom AD groups like intra_admin and then if they are a member they will be able to see certain links to pages etc. Any ideas, I hope this makes sence Link to comment https://forums.phpfreaks.com/topic/225229-php-with-ad-user-groups-question/ Share on other sites More sharing options...
trq Posted January 22, 2011 Share Posted January 22, 2011 You 'll need to look into ldap. I haven't got any code on me at the moment because I'm at home but I have a pretty simple example at work. Basically, you use the username that you have to search through ldap and find what groups the user belongs too. Link to comment https://forums.phpfreaks.com/topic/225229-php-with-ad-user-groups-question/#findComment-1163443 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.