#!/usr/local/bin/perl # conf_bind.cgi # Display winbind-related options require './samba-lib.pl'; # check acls &error_setup("$text{'eacl_aviol'}"); &error("$text{'eacl_np'} $text{'eacl_pcm'}") unless $access{'conf_bind'}; &ui_print_header(undef, $text{'bind_title'}, ""); &get_share("global"); print "
\n"; print "\n"; print "\n"; print "
$text{'bind_title'}
\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; printf "\n", &getval("realm"); print "\n"; printf "\n", &getval("winbind cache time"); print "\n"; printf "\n", &getval("idmap uid"); print "\n"; printf "\n", &getval("idmap gid"); $backend = &getval("idmap backend"); print "\n"; print "\n"; print "
$text{'bind_local'}",&ui_radio("local", &istrue("winbind enable local accounts") ? 1 : 0, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]),"$text{'bind_trust'}",&ui_radio("trust", &istrue("winbind trusted domains only") ? 1 : 0, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]),"
$text{'bind_users'}",&ui_radio("users", &istrue("winbind enum users") ? 1 : 0, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]),"$text{'bind_groups'}",&ui_radio("groups", &istrue("winbind enum groups") ? 1 : 0, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]),"
$text{'bind_defaultdomain'}",&ui_radio("defaultdomain", &istrue("winbind use default domain") ? 1 : 0, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]),"
$text{'bind_realm'}$text{'bind_cache'}
$text{'bind_uid'}$text{'bind_gid'}
$text{'bind_backend'}", &ui_radio("backend_def", $backend ? 0 : 1, [ [ 1, $text{'default'} ], [ 0, &ui_textbox("backend", $backend, 50) ] ]), "

\n"; print "

\n"; &ui_print_footer("", $text{'index_sharelist'});