summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d775b4)
raw | patch | inline | side by side (parent: 0d775b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Nov 2006 04:10:02 +0000 (04:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Nov 2006 04:10:02 +0000 (04:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5155 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 7abac71be2ce929979d77759fee04156c60f6fae..1e086ecb5b2486cc7f47ece760c23cccc8c01dcb 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
}
}
}
+
+ /* added by Guido Serra aka Zeph <zeph@purotesto.it> */
+ function getCn($dn){
+ $simple= split(",", $dn);
+
+ foreach($simple as $piece) {
+ $partial= split("=", $piece);
+
+ if($partial[0] == "cn"){
+ return $partial[1];
+ }
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: