Hi,
I’m trying to implement logic where I need to check user belongins to specific group. I’m using LDAP query function, and my LDAP query is:
(&(objectClass=user)(sAMAccountName=denis)(memberof=CN=supergroup,CN=Users,dc=contoso,dc=internal))
I expect that {ldap.LDAP-Query.execution.success} will be true if user belogs to group and false if he doesn’t. Also syntax of my LDAP query is highlighted as error from Apigee point if view.
I also tried to to regular search and use attributes, like
CN=denis
and extract attributes like
<Attributes>
<Attribute>memberof</Attribute>
But I got error that these attributes not found:
{"fault":{"faultstring":"Unresolved variable : ldap.LDAP-Query.search.result.attribute.memberof","detail":{"errorcode":"entities.UnresolvedVariable"}}}
My question is, APigee LDAP can do only very simple queries, like XX=XX?
I don’t want to use node.js, are there any other way to use stock LDAP query to determine use belonings to group? Maybe my syntax wrong?
D.