本文整理匯總了PHP中adLDAP::group_create方法的典型用法代碼示例。如果您正苦於以下問題:PHP adLDAP::group_create方法的具體用法?PHP adLDAP::group_create怎麽用?PHP adLDAP::group_create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類adLDAP
的用法示例。
在下文中一共展示了adLDAP::group_create方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
var_dump($result);
}
// add a group to a group
if (0) {
$result = $ldap->group_add_group("Parent Group Name", "Child Group Name");
var_dump($result);
}
// add a user to a group
if (0) {
$result = $ldap->group_add_user("Group Name", "username");
var_dump($result);
}
// create a group
if (0) {
$attributes = array("group_name" => "Test Group", "description" => "Just Testing", "container" => array("Groups", "A Container"));
$result = $ldap->group_create($attributes);
var_dump($result);
}
// retrieve information about a group
if (0) {
$result = $ldap->group_info("Group Name");
var_dump($result);
}
// create a user account
if (0) {
$attributes = array("username" => "freds", "logon_name" => "freds@mydomain.local", "firstname" => "Fred", "surname" => "Smith", "company" => "My Company", "department" => "My Department", "email" => "freds@mydomain.local", "container" => array("Container Parent", "Container Child"), "enabled" => 1, "password" => "Password123");
$result = $ldap->user_create($attributes);
var_dump($result);
}
// retrieve the group membership for a user
if (0) {