addVerticalSpacer('1rem'); $container->add(new htmlStatusMessage("ERROR", _("This user was not found!"), htmlspecialchars($user)), 12); $container->addVerticalSpacer('1rem'); $container->add(new \htmlLink(_("Back to group list"), 'javascript:history.back()'), 12); parseHtml(null, $container, array(), false, $tabindex, 'user'); include '../../lib/adminFooter.inc'; } /** * Searches LDAP for a specific user name (uid attribute) and returns its DN entry * * @param string $name user name * @return string DN */ function search_username($name) { $entries = searchLDAPByAttribute('uid', $name, null, array('dn'), array('user')); if (sizeof($entries) > 0 ) { return $entries[0]['dn']; } else return ""; } ?>