本文整理匯總了PHP中Ldap::Modify方法的典型用法代碼示例。如果您正苦於以下問題:PHP Ldap::Modify方法的具體用法?PHP Ldap::Modify怎麽用?PHP Ldap::Modify使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Ldap
的用法示例。
在下文中一共展示了Ldap::Modify方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: cacti_ldap_mod_dn
function cacti_ldap_mod_dn($modify, $username, $attrib, $dn = "", $host = "", $port = "", $port_ssl = "", $version = "", $encryption = "", $referrals = "", $group_dn = "", $group_attrib = "", $group_member_type = "", $search_base = "", $search_filter = "", $specific_dn = "", $specific_password = "")
{
$ldap = new Ldap();
if (!empty($modify)) {
$ldap->modify = $modify;
}
if (!empty($username)) {
$ldap->username = $username;
}
if (!empty($attrib)) {
$ldap->attrib = $attrib;
}
if (!empty($dn)) {
$ldap->dn = $dn;
}
if (!empty($host)) {
$ldap->host = $host;
}
if (!empty($port)) {
$ldap->port = $port;
}
if (!empty($port_ssl)) {
$ldap->port_ssl = $port_ssl;
}
if (!empty($version)) {
$ldap->version = $version;
}
if (!empty($encryption)) {
$ldap->encryption = $encryption;
}
if (!empty($referrals)) {
$ldap->referrals = $referrals;
}
if (!empty($group_dn)) {
$ldap->group_dn = $group_dn;
}
if (!empty($group_attrib)) {
$ldap->group_attrib = $group_attrib;
}
if (!empty($group_member_type)) {
$ldap->group_member_type = $group_member_type;
}
if (!empty($search_base)) {
$ldap->search_base = $search_base;
}
if (!empty($search_filter)) {
$ldap->search_filter = $search_filter;
}
if (!empty($specific_dn)) {
$ldap->specific_dn = $specific_dn;
}
if (!empty($specific_password)) {
$ldap->specific_password = $specific_password;
}
return $ldap->Modify();
}