Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have successfully configured the LDAPAuth module (I must use authentication) to integrate AD users into Drupal.
The question is now, how to integrate the users securitygroups located in AD's "Member of:" field for each user.
How do I do this?
Which of the 3 settings do I use?
("Group is specified in user's DN", "Groups are specified by LDAP attributes", "Groups exist as LDAP entries where a multivalued attribute contains the members' CNs")
I am trying to grab the uid of the currently logged on user. AFAIK, I should be able to use $user->uid which should return the uid. Calling that returns nothing. Or Null, I'm not sure, but I know its not returning the uid of the current user. Trying to do a print_r($user) also returns nothing, so it seems like the $user global is empty. If I explicitly declare Global $user; in the php, I then get the user login block which is normally not there. (I'm using NTLM auth via the webserver_auth module) It also then spits out errors in the log as Anon instead of my user.
I have an install of Drupal 4.7x and am running into a new problem. I attempted to restrict access of anon users to any content whatsoever by removing their permissions in Admin > Access Control. I then created a static page, called it in Settings > General Settings > Error Handling as my 403 Error.
The latter never worked properly (displayed, instead, a page reading "Node 3"), so I reverted to the standard error page.
I'm new to Drupal, and I'm wonering how to hide a menu block from anonymous users (or members who have not yet logged in). How do I go about doing something like this? I've tried various methods, but nothing seems to work. Any help would be great.
I'm currently wrestling with getting nice print-out from my site.
I have a theme based on friendselectric at the moment.
For all nodes, I can use the print-friendly pages module, and it does an excellent job.
However, for non-nodes it doesn't seem to work.
So for the frontpage, lists of teasers etc, I use a seperate print.css stylesheet, and hide sidebars, etc.
I havn't got this nailed down yet, but it works good enough.
Howver, printing a month calendar view is causing problems.