update readme
[auerswald-compact-ldap.git] / ldap2csv.php
old mode 100644 (file)
new mode 100755 (executable)
index cff9732..dd779a6
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
 <?php
 /**
  * Fetches all entries from the LDAP server and outputs a CSV file
@@ -72,7 +73,7 @@ while ($entry = $search->shiftEntry()) {
                         array('', '00'),
                         $fv
                     ),
-                    $name
+                    utf8_decode($name)
                 );
             }
         }