我正在尝试使用基于SSL的LDAP创建网页来重置AD用户密码。据我了解,更改密码需要SSL。
我已使用在服务器管理器中添加角色和功能添加了Traceback (most recent call last):
File "/home/user/Documentos/Repo/grafos.py", line 1, in <module>
import dgl
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/__init__.py", line 2, in <module>
from . import function
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/function/__init__.py", line 5, in <module>
from .message import *
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/function/message.py", line 7, in <module>
from .. import backend as F
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/backend/__init__.py", line 46, in <module>
load_backend(os.environ.get('DGLBACKEND', 'pytorch').lower())
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/backend/__init__.py", line 18, in load_backend
mod = importlib.import_module('.%s' % mod_name, __name__)
File "/home/user/anaconda3/envs/my_env/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/backend/pytorch/__init__.py", line 1, in <module>
from .tensor import *
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/dgl/backend/pytorch/tensor.py", line 5, in <module>
import torch as th
File "/home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/torch/__init__.py", line 102, in <module>
from torch._C import *
ImportError: /home/user/anaconda3/envs/my_env/lib/python3.7/site-packages/torch/lib/libtorch.so.1: undefined symbol: nvrtcGetProgramLogSize
。然后,我可以使用AD Certificate Services
进行连接(即使我尝试使用搜索功能也可以)。
但是我无法使用PHP进行连接。这是我的源代码:
LDP.exe
此代码输出警告:ldap_bind():无法绑定服务器:无法联系LDAP服务器
如果我尝试使用
<?php $ldap_dn = "CN=Administrator,CN=Users,DC=nurda,DC=local"; $ldap_password = ""; $server = 'ldaps://nurda.local:636'; putenv('LDAPTLS_REQCERT=never'); $ldap_con = ldap_connect($server) or die ("Can't connect"); ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION,3); if(ldap_bind($ldap_con, $ldap_dn, $ldap_password)){ echo "Bind successfull"; }else { echo "Invalid user/pass or other errors!"; } ?>
,它将成功绑定
我正在使用Windows Server 2012 r2和XAMPP
这是否意味着我不能使用PHP进行连接,如果可以通过ldap.exe进行连接?
我还需要做什么?我可以添加任何其他信息来进行故障排除
有关如何启用LDAP的更多信息:
$server = 'ldap://nurda.local';