fixed domain setting
This commit is contained in:
parent
f12bb6ca98
commit
c7830ae357
|
@ -85,7 +85,7 @@ if ($_SESSION['config']->is_samba3()) {
|
||||||
$doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_DomainSuffix());
|
$doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_DomainSuffix());
|
||||||
for ($i = 0; $i < sizeof($doms); $i++) {
|
for ($i = 0; $i < sizeof($doms); $i++) {
|
||||||
if (strtolower($acct->smb_domain->name) == strtolower($doms[$i]->name)) {
|
if (strtolower($acct->smb_domain->name) == strtolower($doms[$i]->name)) {
|
||||||
echo ("<option selected value=\"" . $act->smb_domain->dn . "\">" . $acct->smb_domain->name . "</option>\n");
|
echo ("<option selected value=\"" . $acct->smb_domain->dn . "\">" . $acct->smb_domain->name . "</option>\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo ("<option value=\"" . $doms[$i]->dn . "\">" . $doms[$i]->name . "</option>\n");
|
echo ("<option value=\"" . $doms[$i]->dn . "\">" . $doms[$i]->name . "</option>\n");
|
||||||
|
|
|
@ -335,7 +335,7 @@ if ($_SESSION['config']->is_samba3()) {
|
||||||
$doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_DomainSuffix());
|
$doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_DomainSuffix());
|
||||||
for ($i = 0; $i < sizeof($doms); $i++) {
|
for ($i = 0; $i < sizeof($doms); $i++) {
|
||||||
if (strtolower($acct->smb_domain->name) == strtolower($doms[$i]->name)) {
|
if (strtolower($acct->smb_domain->name) == strtolower($doms[$i]->name)) {
|
||||||
echo ("<option selected value=\"" . $act->smb_domain->dn . "\">" . $acct->smb_domain->name . "</option>\n");
|
echo ("<option selected value=\"" . $acct->smb_domain->dn . "\">" . $acct->smb_domain->name . "</option>\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo ("<option value=\"" . $doms[$i]->dn . "\">" . $doms[$i]->name . "</option>\n");
|
echo ("<option value=\"" . $doms[$i]->dn . "\">" . $doms[$i]->name . "</option>\n");
|
||||||
|
|
Loading…
Reference in New Issue