Closed (outdated)
Project:
Lightweight Directory Access Protocol
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2012 at 13:19 UTC
Updated:
11 Mar 2016 at 03:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
johnbarclay commentedLDAP Query and LDAP Views are fairly new modules. Both could use some documentation at http://drupal.org/node/997082. If anyone has any docs or insight into this, please add a page. My understanding is ldap views should work just like any other views. Be sure to use the current dev version and not the past beta.
Comment #2
dbourrion commentedHi
I'm on the dev version, but still unable to understand how to get my queries into views :( ;)
Comment #3
michaelfavia commented@dbourrion: im just picking this ldap views integration up myself and judging by the timestamp on your comment youve probably moved on but here it is for prosperity.
Form what i can tell you need to create a new view with a basetable of type LDAP. Then you select the LDAP query under Query Settings in the OTHER section of the view editing screen.
This adds the attributes to the "attributes" select list in the "Field" called: LDAP Query: LDAP Attribute. This is how you specify which ldap attributes to list.
Linking these results to a normal base table in drupal will involve defining the relationship of one of these attributes to another known base table in views knowledge graph. This is where i'm presently stuck because i'm getting a JSON object output instead of a config screen when i click on "define relationship" in the relationship section.
Ill report back and document this process once I get a working version. Good luck!
Comment #4
johnbarclay commentedMarking this as active. Please raise whatever issues or bugs you see. This is a lightly used module as far as I can tell.
Comment #5
pxljedi commentedI've gotten my view to work, but I cannot get all of my fields to show up. See screen shot.
My query actually pulls in all the fields in a person's LDAP entry. I did this so I can customize through a view. But I cannot see all of the fields as an option in the view.
I did follow the directions above to add my LDAP query to the Advanced/Other/Query option.
Comment #6
pxljedi commentedI've actually figured this out.
1. We had aliases in our LDAP
2. When setting up the view, one needs to do something like this to bring in the fields from the query.
LDAP Query: LDAP Attribute (Name:)
LDAP Query: LDAP Attribute (Location:)
LDAP Query: LDAP Attribute (Title)
LDAP Query: LDAP Attribute (Phone)
LDAP Query: LDAP Attribute (LDAP Attribute)
LDAP Query: LDAP Attribute (LDAP Attribute)
Now, if I could only get the jpegPhoto to not come in as binary.
Comment #7
larowlanno update for > 12 months - closing