RELEASE 0.9.5
This commit is contained in:
@@ -1,69 +1,92 @@
|
||||
<?php
|
||||
require realpath( 'common.php' );
|
||||
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_smb3_user_template.php,v 1.23 2004/12/16 22:59:50 uugdave Exp $
|
||||
|
||||
$samba3_domains = get_samba3_domains();
|
||||
$samba3_domains = get_samba3_domains();
|
||||
|
||||
$default_container = "ou=Users";
|
||||
$default_home = "/home";
|
||||
$default_container = "ou=Users";
|
||||
$default_home = "/home";
|
||||
|
||||
// Common to all templates
|
||||
$server_id = $_POST['server_id'];
|
||||
// Common to all templates
|
||||
$server_id = $_POST['server_id'];
|
||||
|
||||
$step = 1;
|
||||
if( isset($_POST['step']) )
|
||||
$step = $_POST['step'];
|
||||
|
||||
//check if the sambaSamAccount objectClass is availaible
|
||||
if( get_schema_objectclass( $server_id, 'sambaSamAccount' ) == null )
|
||||
pla_error( "You LDAP server does not have schema support for the sambaSamAccount objectClass. Cannot continue." );
|
||||
|
||||
check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) );
|
||||
have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." );
|
||||
?>
|
||||
$now = time();
|
||||
$step = 1;
|
||||
if( isset($_POST['step']) )
|
||||
$step = $_POST['step'];
|
||||
|
||||
//check if the sambaSamAccount objectClass is availaible
|
||||
if( get_schema_objectclass( $server_id, 'sambaSamAccount' ) == null )
|
||||
pla_error( "Your LDAP server does not have schema support for the sambaSamAccount objectClass. Cannot continue." );
|
||||
|
||||
check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) );
|
||||
have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." );
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function autoFillUserName( form ) {
|
||||
var first_name;
|
||||
var last_name;
|
||||
var user_name;
|
||||
|
||||
first_name = form.first_name.value.toLowerCase();
|
||||
last_name = form.last_name.value.toLowerCase();
|
||||
if( last_name == '' ) {
|
||||
return false;
|
||||
}
|
||||
user_name = first_name.substr( 0,1 ) + last_name;
|
||||
function autoFillUserName( form ) {
|
||||
var first_name;
|
||||
var last_name;
|
||||
var user_name;
|
||||
|
||||
form.user_name.value = user_name;
|
||||
autoFillHomeDir( form );
|
||||
}
|
||||
function autoFillHomeDir( form ){
|
||||
var user_name;
|
||||
var home_dir;
|
||||
first_name = form.first_name.value.toLowerCase();
|
||||
last_name = form.last_name.value.toLowerCase();
|
||||
if( last_name == '' ) {
|
||||
return false;
|
||||
}
|
||||
user_name = first_name.substr( 0,1 ) + last_name;
|
||||
form.user_name.value = user_name;
|
||||
autoFillHomeDir( form );
|
||||
}
|
||||
function autoFillHomeDir( form ){
|
||||
var user_name;
|
||||
var home_dir;
|
||||
|
||||
user_name = form.user_name.value.toLowerCase();
|
||||
user_name = form.user_name.value.toLowerCase();
|
||||
|
||||
home_dir = '<?php echo $default_home; ?>/';
|
||||
home_dir += user_name;
|
||||
form.home_dir.value = home_dir;
|
||||
home_dir = '<?php echo $default_home; ?>/';
|
||||
home_dir += user_name;
|
||||
form.home_dir.value = home_dir;
|
||||
}
|
||||
function autoFillSambaRID( form ){
|
||||
var sambaRID;
|
||||
var uidNumber;
|
||||
|
||||
//check if the UID Number is a number
|
||||
if(!isNaN(form.uid_number.value)){
|
||||
uidNumber = form.uid_number.value;
|
||||
sambaRID = (2*uidNumber)+1000;
|
||||
form.samba3_user_rid.value = sambaRID;
|
||||
}
|
||||
// otherwise (re)set the samba rid value to an empty string
|
||||
else{
|
||||
form.samba3_user_rid.value = "";
|
||||
}
|
||||
}
|
||||
function autoFillSambaGroupRID( form ){
|
||||
var gidNumber;
|
||||
|
||||
}
|
||||
function autoFillSambaRID( form ){
|
||||
var sambaRID;
|
||||
var uidNumber;
|
||||
|
||||
// TO DO:need to check if uidNumber is an integer
|
||||
uidNumber = form.uid_number.value;
|
||||
sambaRID = (2*uidNumber)+1000;
|
||||
form.samba3_user_rid.value = sambaRID;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
gidNumber = form.gid_number.value;
|
||||
if( form.samba_group[0].checked ){
|
||||
form.custom_rid.value = "";
|
||||
}
|
||||
else {
|
||||
form.custom_rid.value = (2*gidNumber)+1001;
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
<center><h2>New Samba3 User Account</h2></center>
|
||||
|
||||
<?php if( $step == 1 ) { ?>
|
||||
<?php if( $step == 1 ) {
|
||||
$base_dn = null;
|
||||
|
||||
if( isset( $samba_base_groups ) )
|
||||
$base_dn = $samba_base_groups;
|
||||
$posix_groups = get_posix_groups( $server_id , $base_dn );
|
||||
?>
|
||||
|
||||
<form action="creation_template.php" method="post" id="user_form" name="user_form">
|
||||
<input type="hidden" name="step" value="2" />
|
||||
@@ -72,11 +95,14 @@
|
||||
|
||||
<center>
|
||||
<table class="confirm">
|
||||
<tr class="spacer"><td colspan="3"></tr>
|
||||
<tr class="spacer"><td colspan="3"></td></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="heading">UID Number:</td>
|
||||
<td><input type="text" name="uid_number" value="" onChange="autoFillSambaRID(this.form)" /></td>
|
||||
<?php $next_uid_number = get_next_uid_number( $server_id ); ?>
|
||||
<td><input type="text" name="uid_number" value="<?php echo $next_uid_number; ?>" onChange="autoFillSambaRID(this.form)" />
|
||||
<?php if( false !== $next_uid_number ) echo "<small>(automatically determined)</small>"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@@ -84,9 +110,9 @@
|
||||
<td><select name="samba3_domain_sid">
|
||||
<?php foreach($samba3_domains as $samba3_domain) ?>
|
||||
<option value="<?php echo $samba3_domain['sid'] ?>"><?php echo $samba3_domain['sid'] ?></option>
|
||||
</select> - <input type="text" name="samba3_user_rid" id="samba3_user_rid" value="" size="7"/></td>
|
||||
</select> - <input type="text" name="samba3_user_rid" id="samba3_user_rid" value="" size="7" onfocus="autoFillSambaRID(this.form)"/></td>
|
||||
</tr>
|
||||
<tr class="spacer"><td colspan="3"></tr>
|
||||
<tr class="spacer"><td colspan="3"></td></tr>
|
||||
<tr>
|
||||
<td><img src="images/uid.png" /></td>
|
||||
<td class="heading">First name:</td>
|
||||
@@ -101,28 +127,83 @@
|
||||
<td></td>
|
||||
<td class="heading">User name:</td>
|
||||
<td><input type="text" name="user_name" id="user_name" value=""
|
||||
onChange="autoFillHomeDir(this.form)" onExit="autoFillHomeDir(this.form)" /></td>
|
||||
onChange="autoFillHomeDir(this.form)" onExit="autoFillHomeDir(this.form,this)" /></td>
|
||||
</tr>
|
||||
<tr class="spacer"><td colspan="3"></tr>
|
||||
<tr class="spacer"><td colspan="3"></td></tr>
|
||||
<tr>
|
||||
<td><img src="images/lock.png" /></td>
|
||||
<td class="heading">Password:</td>
|
||||
<td class="heading">User Password:</td>
|
||||
<td><input type="password" name="user_pass1" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="heading">Password:</td>
|
||||
<td class="heading">User Password:</td>
|
||||
<td><input type="password" name="user_pass2" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="heading">Encryption:</td>
|
||||
<td>
|
||||
<input type="hidden" name="encryption" value="crypt"/>
|
||||
<i>crypt</i>
|
||||
</td>
|
||||
<td><select name="encryption">
|
||||
<option>clear</option>
|
||||
<option>md5</option>
|
||||
<option>smd5</option>
|
||||
<option>crypt</option>
|
||||
<option>sha</option>
|
||||
<option>ssha</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr class="spacer"><td colspan="3"></tr>
|
||||
<tr valign="top">
|
||||
<td></td>
|
||||
<td class="heading">Samba Password:</td>
|
||||
<td>
|
||||
<div style="font-size: 90%;">
|
||||
<div>
|
||||
<input type="radio" name="samba_pass_mode" checked="true" value="1" />
|
||||
<span style="font-size: 90%;">Use Unix Password</span>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="samba_pass_mode" value="2" />
|
||||
<span style="font-size: 90%;">Null Password</span>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="samba_pass_mode" value="3" />
|
||||
<span style="font-size: 90%;">No Password</span>
|
||||
</div>
|
||||
<div>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td><input type="radio" name="samba_pass_mode" style="margin-left:0px;" value="4" /> <span style="font-size: 90%;">New Password :</span> </td>
|
||||
<td>
|
||||
<div><input type="password" name="samba_pass1" /></div>
|
||||
<div style="padding-top:3px"><input type="password" name="samba_pass2" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<table>
|
||||
<tr valign="top" colspan="2">
|
||||
<td><input type="radio" name="samba_pass_mode" style="margin-left:0px;" value="5" /> <span style="font-size: 90%;">Existing Password :</span> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="2" style="padding-left:25px;">
|
||||
<div>
|
||||
<span style="font-size:90%;">LM Password: </span>
|
||||
<span style="padding-left:20px;"><input type="text" name="lmpassword" /></span>
|
||||
</div>
|
||||
<div style="padding-top:3px;" >
|
||||
<span style="font-size: 90%;">NT Password: </span>
|
||||
<span style="padding-left:20px;"><input type="text" name="ntpassword" /></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="spacer"><td colspan="3"></td></tr>
|
||||
<tr>
|
||||
<td><img src="images/terminal.png" /></td>
|
||||
<td class="heading">Login Shell:</td>
|
||||
@@ -146,37 +227,62 @@
|
||||
echo htmlspecialchars( $container );
|
||||
else
|
||||
echo htmlspecialchars( $default_container . ',' . $servers[$server_id]['base'] ); ?>" />
|
||||
<?php draw_chooser_link( 'user_form.container' ); ?></td>
|
||||
<?php draw_chooser_link( 'user_form.container' ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="heading">Unix Group:</td>
|
||||
<td><select name="group">
|
||||
<option value="1000">admins (1000)</option>
|
||||
<option value="2000">users (2000)</option>
|
||||
<option value="3000">staff (3000)</option>
|
||||
<option value="5000">guest (5000)</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<?php $posix_groups_found = ( is_array( $posix_groups )?1:0 );?>
|
||||
<td class="heading"><?php echo $posix_groups_found?"Unix Group":"GID Number"?>:</td>
|
||||
<td>
|
||||
<?php if( $posix_groups_found ){?>
|
||||
<select name="gid_number" onchange="autoFillSambaGroupRID( this.form )">
|
||||
<?php foreach ( $posix_groups as $dn => $attrs ){
|
||||
$group_name = ereg_replace('^.*=',"",get_rdn($dn));
|
||||
?>
|
||||
<option value="<?php echo $attrs['gidNumber'];?>"><?php echo $group_name;?> </option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php }else{ ?><input type="text" name="gid_number" /><?php } ?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr valign="top">
|
||||
<td></td>
|
||||
<td class="heading">Windows Group:</td>
|
||||
<td><select name="sambaPrimaryGroupSID">
|
||||
|
||||
<option value="S-1-5-32-544">Local Administrator (S-1-5-32-544)</option>
|
||||
<option value="S-1-5-32-545">Local Users (S-1-5-32-545)</option>
|
||||
<option value="S-1-5-32-546">Local Guests (S-1-5-32-546)</option>
|
||||
<option value="S-1-5-32-547">Local Power Users (S-1-5-32-547)</option>
|
||||
|
||||
<td>
|
||||
<div style="font-size: 90%">
|
||||
<div>
|
||||
<div><input type="radio" name="samba_group" value="1" checked="true" onchange="autoFillSambaGroupRID( this.form )" /> <span style="text-decoration:underline;">Built-In:</span></div>
|
||||
<div style="padding-top: 3px;">
|
||||
<select name="builtin_sid">
|
||||
<optgroup label="Local Group">
|
||||
<?php foreach( $built_in_local_groups as $sid => $name ){ ?>
|
||||
<option value="<?php echo $sid; ?>"><?php echo $name; ?> (<?php echo $sid; ?>)</option> <?php } ?>
|
||||
</optgroup>
|
||||
<optgroup label="Global Groups">
|
||||
<?php foreach($samba3_domains as $samba3_domain) { ?>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-512">Domain Admins (<?php echo $samba3_domain['sid']; ?>-512)</option>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-513">Domain Users (<?php echo $samba3_domain['sid']; ?>-513)</option>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-514">Domain Guests (<?php echo $samba3_domain['sid']; ?>-514)</option>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-512">Domain Admins (<?php echo $samba3_domain['sid']; ?>-512)</option>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-513">Domain Users (<?php echo $samba3_domain['sid']; ?>-513)</option>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>-514">Domain Guests (<?php echo $samba3_domain['sid']; ?>-514)</option>
|
||||
<?php } ?>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-top:10px;">
|
||||
<div><input type="radio" name="samba_group" value="2" onchange="autoFillSambaGroupRID( this.form )" /> <span style="text-decoration:underline;">Custom:</span></div>
|
||||
<div style="padding-top:3px;">
|
||||
<select name="custom_domain_sid">
|
||||
<?php foreach($samba3_domains as $samba3_domain) { ?>
|
||||
<option value="<?php echo $samba3_domain['sid']; ?>"><?php echo $samba3_domain['sid']; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="text" name="custom_rid" size="15" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@@ -184,20 +290,22 @@
|
||||
<td><input type="text" name="home_dir" value="" id="home_dir" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><center><br /><input type="submit" value="Proceed >>" /></td>
|
||||
<td colspan="3" style="text-align: center"><br /><input type="submit" value="Proceed >>" /></td>
|
||||
</tr>
|
||||
<tr height="10"><td colspan="3"></tr>
|
||||
<tr class="spacer"><td colspan="3"></tr>
|
||||
<tr height="10"><td colspan="3"></td></tr>
|
||||
<tr class="spacer"><td colspan="3"></td></tr>
|
||||
<tr>
|
||||
<td><small><b>Note: </b></small></td>
|
||||
<td colspan="2"><small>To change the value(s) of the samba domain sid, please edit the file :<br /> <code>templates/template_config.php</small></code></td>
|
||||
<td colspan="2"><small>To change the value(s) of the samba domain sid, please edit the file :<br /> <code>templates/template_config.php</code></small></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
|
||||
<?php } elseif( $step == 2 ) {
|
||||
|
||||
$user_name = trim( $_POST['user_name'] );
|
||||
$user_name = trim( $_POST['user_name'] );
|
||||
$first_name = trim( $_POST['first_name'] );
|
||||
$last_name = trim( $_POST['last_name'] );
|
||||
$password1 = $_POST['user_pass1'];
|
||||
@@ -205,16 +313,40 @@
|
||||
$encryption = $_POST['encryption'];
|
||||
$login_shell = trim( $_POST['login_shell'] );
|
||||
$uid_number = trim( $_POST['uid_number'] );
|
||||
$gid_number = trim( $_POST['group'] );
|
||||
$gid_number = trim( $_POST['gid_number'] );
|
||||
$container = trim( $_POST['container'] );
|
||||
$home_dir = trim( $_POST['home_dir'] );
|
||||
$samba3_primary_group_sid = NULL;
|
||||
$samba3_group = isset( $_POST['samba_group'] )? $_POST['samba_group'] : 0 ;
|
||||
switch($samba3_group){
|
||||
case 1:
|
||||
isset( $_POST['builtin_sid'] ) or pla_error("No built-in group selected. Please go back and try again" );
|
||||
$samba3_primary_group_sid = $_POST['builtin_sid'];
|
||||
break;
|
||||
case 2:
|
||||
! empty( $_POST['custom_rid'] ) or pla_error( "The value of the samba RID was not specified. Please go back and try again" );
|
||||
$samba3_primary_group_sid = $_POST['custom_domain_sid'] . "-" .$_POST['custom_rid'];
|
||||
break;
|
||||
default:
|
||||
pla_error( "No samba group select. Please go back and try again" );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$samba3_user_rid = trim( $_POST['samba3_user_rid'] );
|
||||
$samba3_domain_sid = trim( $_POST['samba3_domain_sid'] );
|
||||
$samba3_primary_group_sid = trim( $_POST['sambaPrimaryGroupSID'] );
|
||||
|
||||
$samba_password_mode = trim( $_POST['samba_pass_mode'] );
|
||||
|
||||
$sambaLMPassword="";
|
||||
$sambaNTPassword="";
|
||||
|
||||
$clearSambaPassword = "";
|
||||
$sambaLMPassword = "";
|
||||
$sambaNTPassword = "";
|
||||
$accountFlag= "[U ]";
|
||||
$sambaPasswordRequired = 0;
|
||||
$smb_passwd_creation_success = 0;
|
||||
|
||||
|
||||
/* Critical assertions */
|
||||
$password1 == $password2 or
|
||||
@@ -227,17 +359,39 @@
|
||||
pla_error( "The container you specified (" . htmlspecialchars( $container ) . ") does not exist. " .
|
||||
"Please go back and try again." );
|
||||
|
||||
switch($samba_password_mode){
|
||||
case 1:
|
||||
$clearSambaPassword = trim( $password1 );
|
||||
$sambaPasswordRequired = 1;
|
||||
break;
|
||||
case 2:
|
||||
$accountFlag= "[NU ]";
|
||||
break;
|
||||
case 3:
|
||||
// do nothing
|
||||
break;
|
||||
case 4:
|
||||
$_POST["samba_pass1"] == $_POST["samba_pass2"] or pla_error ( "Yours samba passwords don't match. Please go back and try again" );
|
||||
$clearSambaPassword = trim($_POST["samba_pass1"]);
|
||||
$sambaPasswordRequired = 1;
|
||||
break;
|
||||
case 5:
|
||||
if( $_POST["ntpassword"] != "" && $_POST["lmpassword"] !=""){
|
||||
$sambaLMPassword = $_POST["lmpassword"];
|
||||
$sambaNTPassword = $_POST["ntpassword"];
|
||||
$smb_passwd_creation_success = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
$password = password_hash( $password1, $encryption );
|
||||
|
||||
//build the mkntpwd command line string
|
||||
$sambaPassCommand = $mkntpwdCommand . " " . $password1;
|
||||
|
||||
// execute this command
|
||||
$sambaPassCommandOutput = shell_exec($sambaPassCommand);
|
||||
if($sambaPassCommandOutput){
|
||||
$sambaLMPassword = substr($sambaPassCommandOutput,0,strPos($sambaPassCommandOutput,':'));
|
||||
$sambaNTPassword = substr($sambaPassCommandOutput,strPos($sambaPassCommandOutput,':')+1);
|
||||
$smb_passwd_creation_success = 1;
|
||||
|
||||
if ( $sambaPasswordRequired ){
|
||||
$mkntPassword = new MkntPasswdUtil();
|
||||
if( $mkntPassword->createSambaPasswords( $clearSambaPassword ) ){
|
||||
$sambaLMPassword = $mkntPassword->getsambaLMPassword();
|
||||
$sambaNTPassword = $mkntPassword->getsambaNTPassword();
|
||||
$smb_passwd_creation_success = 1;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -266,7 +420,7 @@
|
||||
<input type="hidden" name="attrs[]" value="loginShell" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo htmlspecialchars($login_shell);?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaAcctFlags" />
|
||||
<input type="hidden" name="vals[]" value="[U ]" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo $accountFlag;?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaPrimaryGroupSID" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo htmlspecialchars($samba3_primary_group_sid);?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaSID" />
|
||||
@@ -284,14 +438,13 @@
|
||||
<input type="hidden" name="vals[]" value="<?php echo htmlspecialchars($sambaLMPassword);?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaNTPassword" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo htmlspecialchars($sambaNTPassword);?>" />
|
||||
<!--
|
||||
<input type="hidden" name="attrs[]" value="sambaPwdCanChange" />
|
||||
<input type="hidden" name="vals[]" value="0" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo $now ?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaPwdLastSet" />
|
||||
<input type="hidden" name="vals[]" value="0" />
|
||||
<input type="hidden" name="vals[]" value="<?php echo $now ?>" />
|
||||
<input type="hidden" name="attrs[]" value="sambaPwdMustChange" />
|
||||
<input type="hidden" name="vals[]" value="2147483647" />
|
||||
-->
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<center>
|
||||
@@ -299,14 +452,19 @@
|
||||
<tr class="even"><td class="heading">User name:</td><td><b><?php echo htmlspecialchars( $user_name ); ?></b></td></tr>
|
||||
<tr class="odd"><td class="heading">First name:</td><td><b><?php echo htmlspecialchars( $first_name ); ?></b></td></tr>
|
||||
<tr class="even"><td class="heading">Last name:</td><td><b><?php echo htmlspecialchars( $last_name ); ?></b></td></tr>
|
||||
<tr class="odd"><td class="heading">UID Number:</td><td><?php echo htmlspecialchars( $uid_number ); ?></td></tr>
|
||||
<tr class="even"><td class="heading">Login Shell:</td><td><?php echo htmlspecialchars( $login_shell); ?></td></tr>
|
||||
<tr class="even"><td class="heading">Samba SID:</td><td><?php echo htmlspecialchars( $samba3_domain_sid."-".$samba3_user_rid ); ?></td></tr>
|
||||
<tr class="odd"><td class="heading">GID Number:</td><td><?php echo htmlspecialchars( $gid_number ); ?></td></tr>
|
||||
<tr class="odd"><td class="heading">Login Shell:</td><td><?php echo htmlspecialchars( $login_shell); ?></td></tr>
|
||||
<tr class="even"><td class="heading">UID Number:</td><td><?php echo htmlspecialchars( $uid_number ); ?></td></tr>
|
||||
<tr class="odd"><td class="heading">Samba SID:</td><td><?php echo htmlspecialchars( $samba3_domain_sid."-".$samba3_user_rid ); ?></td></tr>
|
||||
<tr class="even"><td class="heading">GID Number:</td><td><?php echo htmlspecialchars( $gid_number ); ?></td></tr>
|
||||
<tr class="odd"><td class="heading">Samba Group Sid:</td><td><?php echo htmlspecialchars( $samba3_primary_group_sid ); ?></td></tr>
|
||||
<tr class="even"><td class="heading">Container:</td><td><?php echo htmlspecialchars( $container ); ?></td></tr>
|
||||
<tr class="odd"><td class="heading">Home dir:</td><td><?php echo htmlspecialchars( $home_dir ); ?></td></tr>
|
||||
<tr class="even"><td class="heading">User Password:</td><td>[secret]</td></tr>
|
||||
<?php if( $smb_passwd_creation_success ){ ?>
|
||||
<tr class="even"><td class="heading">Password:</td><td>[secret]</td></tr>
|
||||
<tr class="odd"><td class="heading">Samba Password:</td><td>[secret]</td></tr>
|
||||
<tr class="even"><td class="heading">Password Last Set:</td><td><?php echo $now ?></td></tr>
|
||||
<tr class="odd"><td class="heading">Password Can Change:</td><td><?php echo $now ?></td></tr>
|
||||
<tr class="even"><td class="heading">Password Must Change:</td><td><?php echo "2147483647" ?></td></tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<br /><input type="submit" value="Create Samba Account" />
|
||||
|
Reference in New Issue
Block a user