fixed typos
This commit is contained in:
		
							parent
							
								
									e201982ce1
								
							
						
					
					
						commit
						748b35dd92
					
				| 
						 | 
					@ -313,7 +313,7 @@ class sambaAccount extends baseModule {
 | 
				
			||||||
					'name' => 'sambaAccount_specialUser',
 | 
										'name' => 'sambaAccount_specialUser',
 | 
				
			||||||
					'description' => _('Special user'),
 | 
										'description' => _('Special user'),
 | 
				
			||||||
					'help' => 'specialUser',
 | 
										'help' => 'specialUser',
 | 
				
			||||||
					'example' => _('Domain Admins'),
 | 
										'example' => _('Domain admins'),
 | 
				
			||||||
					'values' => implode(", ", array_keys($this->rids))
 | 
										'values' => implode(", ", array_keys($this->rids))
 | 
				
			||||||
				),
 | 
									),
 | 
				
			||||||
				array(
 | 
									array(
 | 
				
			||||||
| 
						 | 
					@ -545,7 +545,7 @@ class sambaAccount extends baseModule {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// host attributes
 | 
							// host attributes
 | 
				
			||||||
		if ($_SESSION[$this->base]->type=='host') {
 | 
							if ($_SESSION[$this->base]->type=='host') {
 | 
				
			||||||
			$this->attributes['primaryGroupID'][0] = $this->rids[_('Domain Computers')];
 | 
								$this->attributes['primaryGroupID'][0] = $this->rids[_('Domain computers')];
 | 
				
			||||||
			if ($_POST['ResetSambaPassword'] || (!$this->attributes['lmPassword'][0])) {
 | 
								if ($_POST['ResetSambaPassword'] || (!$this->attributes['lmPassword'][0])) {
 | 
				
			||||||
				$hostname = $_SESSION[$this->base]->module['posixAccount']->attributes['uid'][0];
 | 
									$hostname = $_SESSION[$this->base]->module['posixAccount']->attributes['uid'][0];
 | 
				
			||||||
				$hostname = substr($hostname, 0, strlen($hostname) - 1);
 | 
									$hostname = substr($hostname, 0, strlen($hostname) - 1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -207,7 +207,7 @@ class sambaGroupMapping extends baseModule {
 | 
				
			||||||
			2 => array ( 'kind' => 'help', 'value' => 'sambaSID' ));
 | 
								2 => array ( 'kind' => 'help', 'value' => 'sambaSID' ));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$names = array_keys($this->sambaGroupTypes);
 | 
							$names = array_keys($this->sambaGroupTypes);
 | 
				
			||||||
		$selected = array( _('Domain Group') );
 | 
							$selected = array( _('Domain group') );
 | 
				
			||||||
		for ($i=0; $i<count($names); $i++) {
 | 
							for ($i=0; $i<count($names); $i++) {
 | 
				
			||||||
			if (!isset($this->attributes['sambaGroupType'][0])) break;
 | 
								if (!isset($this->attributes['sambaGroupType'][0])) break;
 | 
				
			||||||
			if ($this->attributes['sambaGroupType'][0]==$this->sambaGroupTypes[$names[$i]]) $selected = array( $names[$i] );
 | 
								if ($this->attributes['sambaGroupType'][0]==$this->sambaGroupTypes[$names[$i]]) $selected = array( $names[$i] );
 | 
				
			||||||
| 
						 | 
					@ -274,7 +274,7 @@ class sambaGroupMapping extends baseModule {
 | 
				
			||||||
					'name' => 'sambaGroupMapping_rid',
 | 
										'name' => 'sambaGroupMapping_rid',
 | 
				
			||||||
					'description' => _('Samba RID number'),
 | 
										'description' => _('Samba RID number'),
 | 
				
			||||||
					'help' => 'rid',
 | 
										'help' => 'rid',
 | 
				
			||||||
					'example' => _('Domain Admins')
 | 
										'example' => _('Domain admins')
 | 
				
			||||||
				),
 | 
									),
 | 
				
			||||||
				array(
 | 
									array(
 | 
				
			||||||
					'name' => 'sambaGroupMapping_groupType',
 | 
										'name' => 'sambaGroupMapping_groupType',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -604,7 +604,7 @@ class sambaSamAccount extends baseModule {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// host attributes
 | 
							// host attributes
 | 
				
			||||||
		if ($_SESSION[$this->base]->type=='host') {
 | 
							if ($_SESSION[$this->base]->type=='host') {
 | 
				
			||||||
			$this->attributes['sambaPrimaryGroupSID'][0] = $SID."-".$this->rids[_('Domain Computers')];
 | 
								$this->attributes['sambaPrimaryGroupSID'][0] = $SID."-".$this->rids[_('Domain computers')];
 | 
				
			||||||
			if ($_POST['ResetSambaPassword'] || !$this->attributes['sambaLMPassword'][0]) {
 | 
								if ($_POST['ResetSambaPassword'] || !$this->attributes['sambaLMPassword'][0]) {
 | 
				
			||||||
				$hostname = $_SESSION[$this->base]->module['posixAccount']->attributes['uid'][0];
 | 
									$hostname = $_SESSION[$this->base]->module['posixAccount']->attributes['uid'][0];
 | 
				
			||||||
				$hostname = substr($hostname, 0, strlen($hostname) - 1);
 | 
									$hostname = substr($hostname, 0, strlen($hostname) - 1);
 | 
				
			||||||
| 
						 | 
					@ -1549,7 +1549,7 @@ class sambaSamAccount extends baseModule {
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				else {
 | 
									else {
 | 
				
			||||||
					// default domain users
 | 
										// default domain users
 | 
				
			||||||
					$partialAccounts[$i]['sambaPrimaryGroupSID'] = $domains[$domIndex]->SID . '-' . $this->rids[_('Domain Users')];
 | 
										$partialAccounts[$i]['sambaPrimaryGroupSID'] = $domains[$domIndex]->SID . '-' . $this->rids[_('Domain users')];
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				// special user
 | 
									// special user
 | 
				
			||||||
				if ($rawAccounts[$i][$ids['sambaSamAccount_rid']] != "") {
 | 
									if ($rawAccounts[$i][$ids['sambaSamAccount_rid']] != "") {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue