Changeset 716
- Timestamp:
- 11/22/09 22:09:30 (4 months ago)
- Location:
- trunk/php
- Files:
-
- 6 modified
-
authclass.php (modified) (2 diffs)
-
src/authadldbuttom_3_importfromad.php (modified) (1 diff)
-
src/authldapbuttom_3_importfromldap.php (modified) (1 diff)
-
src/authntlmbuttom_3_importfromntlm.php (modified) (2 diffs)
-
src/grouptray.php (modified) (1 diff)
-
src/userbuttom_6_chpasswd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/php/authclass.php
r690 r716 306 306 // $aaa=ExecuteShellScript("bin/testwbinfopasswd", $e); 307 307 // $aaa=ExecuteShellScript("bin/testwbinfopasswd", $e); 308 $aaa=ntlm_auth ($this->UserName,$password,$SAMSConf->WBINFOPATH);308 $aaa=ntlm_auth($this->UserName,$password,$SAMSConf->WBINFOPATH); 309 309 // if(stristr($aaa,"authentication succeeded" )!=false||stristr($aaa,"NT_STATUS_OK" )!=false) 310 310 if(stristr($aaa,"OK" )!=false||stristr($aaa,"ERR" )!=true) … … 417 417 1 => array("pipe", "w") // stdout is a pipe that the child will write to 418 418 ); 419 $ntlm_auth = proc_open("bin/ntlm_auth ".$path, $descriptorspec, $pipes); 419 //$ntlm_auth = proc_open("bin/ntlm_auth ".$path, $descriptorspec, $pipes); 420 $ntlm_auth = proc_open("bin/testwbinfopasswd ".$path, $descriptorspec, $pipes); 420 421 if (is_resource($ntlm_auth)) { 421 422 // $pipes now looks like this: -
trunk/php/src/authadldbuttom_3_importfromad.php
r691 r716 172 172 $clrdate="1980-01-01"; 173 173 174 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', ' ADLD', '$period', '$clrdate', '0', '-1' ) ");174 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', 'adld', '$period', '$clrdate', '0', '-1' ) "); 175 175 $DB->samsdb_query_value("SELECT s_shablon_id FROM shablon WHERE s_name='$addgroupname[$i]' "); 176 176 $row=$DB->samsdb_fetch_array(); -
trunk/php/src/authldapbuttom_3_importfromldap.php
r691 r716 158 158 if($clrdate=="") 159 159 $clrdate="1980-01-01"; 160 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', ' ADLD', '$period', '$clrdate', '0', '-1' ) ");160 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', 'ldap', '$period', '$clrdate', '0', '-1' ) "); 161 161 $DB->samsdb_query_value("SELECT s_shablon_id FROM shablon WHERE s_name='$addgroupname[$i]' "); 162 162 $row=$DB->samsdb_fetch_array(); -
trunk/php/src/authntlmbuttom_3_importfromntlm.php
r696 r716 161 161 if($clrdate=="") 162 162 $clrdate="1980-01-01"; 163 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', ' ADLD', '$period', '$clrdate', '0', '-1' ) ");163 $DB->samsdb_query("INSERT INTO shablon ( s_name, s_quote, s_auth, s_period, s_clrdate, s_alldenied, s_shablon_id2 ) VALUES ( '$addgroupname[$i]', '$defaulttraf', 'ntlm', '$period', '$clrdate', '0', '-1' ) "); 164 164 $DB->samsdb_query_value("SELECT s_shablon_id FROM shablon WHERE s_name='$addgroupname[$i]' "); 165 165 $row=$DB->samsdb_fetch_array(); … … 272 272 $num_rows=$DB->samsdb_query_value($QUERY); 273 273 if($num_rows==0) 274 print("<OPTION VALUE=\"$a[$i]\"> $a[$i] $num_rows\n");274 print("<OPTION VALUE=\"$a[$i]\"> $a[$i]\n"); 275 275 276 276 } -
trunk/php/src/grouptray.php
r650 r716 123 123 $traffic=$row['s_size']; 124 124 if($row['s_quote']*$SAMSConf->KBSIZE*$SAMSConf->KBSIZE>=$traffic||$row['s_quote']<=0) 125 $gif=" puser.gif";125 $gif="user_active.png"; 126 126 else 127 127 if($row['s_quote']>0) -
trunk/php/src/userbuttom_6_chpasswd.php
r673 r716 106 106 require($lang); 107 107 108 if( $USERConf->ToWebInterfaceAccess("AUC")==1 || ($USERConf->s_user_id == $SquidUSERConf->s_user_id && $USERConf->ToWebInterfaceAccess("W")==1 ))108 if($USERConf->ToWebInterfaceAccess("AUC")==1 || ($USERConf->s_user_id == $SquidUSERConf->s_user_id && $USERConf->ToWebInterfaceAccess("W")==1 )) 109 109 { 110 if(strtolower($ USERConf->s_auth)=='adld' || strtolower($USERConf->s_auth)=='ldap')110 if(strtolower($SquidUSERConf->s_auth)=='adld' || strtolower($SquidUSERConf->s_auth)=='ldap') 111 111 return(0); 112 112 GraphButton("main.php?show=exe&function=chuserpasswdform&filename=userbuttom_6_chpasswd.php&id=$SquidUSERConf->s_user_id","basefrm","userpasswd_32.jpg","userpasswd_48.jpg"," $userbuttom_6_chpasswd_userbuttom_6_chpasswd_1");
