[commits] [Wiki] changed: LDAPHooksHorde5

Wiki Guest wikiguest at horde.org
Sun Feb 17 09:56:53 UTC 2013


guest [59.167.157.243]  Sun, 17 Feb 2013 09:56:53 +0000

Modified page: http://wiki.horde.org/LDAPHooksHorde5
New Revision:  6
Change log:  Typos

@@ -49,9 +49,9 @@

  For troubleshooting I used the php file_put_contents function. The  
following is an extract of what I used as a guide to help you see what  
the variables are doing:

  <code type="php">
-$searchBase = 'ou=users,dc=simonandkate,dc=lan';
+$searchBase = 'ou=users,dc=yourdomain,dc=lan';
  file_put_contents('/var/www/horde/output.txt', 'Variable $searchBase  
is ' . $searchBase . PHP_EOL);
  $cmd = '/usr/bin/ldapsearch -ZZ -x -b ' . $searchBase . ' uid=' .  
escapeshellcmd($username) . ' | /bin/grep cn: | /usr/bin/awk \'{print  
$2}\'';
  file_put_contents('/var/www/horde/output.txt', 'Variable $cmd is ' .  
$cmd . PHP_EOL, FILE_APPEND);
  $cns = `$cmd`;



More information about the commits mailing list