使用最广泛的radius的linux的源码

源代码在线查看: change_passwd.php3

软件大小: 3428 K
上传用户: qq448792326
关键词: radius linux 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								require_once('../lib/ldap/functions.php3');					if ($config[ldap_write_server])						$ds = @ldap_connect($config[ldap_write_server]);					else						$ds = @ldap_connect($config[ldap_server]);					if ($ds){						$r = @da_ldap_bind($ds,$config);						if ($r){							if (is_file("../lib/crypt/$config[general_encryption_method].php3")){								include("../lib/crypt/$config[general_encryption_method].php3");								$passwd = da_encrypt($passwd);								$passwd = '{' . $config[general_encryption_method] . '}' . $passwd;								$mod[$attrmap['User-Password']] = $passwd;								if ($config[ldap_debug] == 'true'){									print "DEBUG(LDAP): ldap_mod_replace(): DN='$dn'\n";									print "DEBUG(LDAP): ldap_mod_replace(): Data:";									print_r($mod);									print "\n";								}								@ldap_mod_replace($ds,$dn,$mod);								if (@ldap_error($ds) != 'Success')									echo "LDAP ERROR: " . ldap_error($ds) . "\n";							}							else								echo "Could not open encryption library file.\n";						}						@ldap_close($ds);					}				?>							

相关资源