From 0ab91499bfc8213557ff83444df2973d6f431dc3 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Sun, 6 Jul 2014 01:58:43 +0200 Subject: [PATCH] Hardcode memberUid and add TODO --- wpDirAuth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wpDirAuth.php b/wpDirAuth.php index 4fa6284..4eaf6a3 100644 --- a/wpDirAuth.php +++ b/wpDirAuth.php @@ -493,7 +493,9 @@ else { // Modify for posixGroup lookup // (&(memberUid=nikolark)(cn=dns-aktiv)) - $strFilterQuery = '(&'.$filterQuery.'(|'; + // TODO configurable memberUid and cn + $memberFilterquery = "(memberUid=$username)"; + $strFilterQuery = '(&'.$memberfilterQuery.'(|'; foreach($aryAuthGroupsDN as $strAuthGroupDN){ $strFilterQuery .= '(cn='.$strAuthGroupDN.')'; }