我尝试创建一些代码将数据推送到 Active Directory 中。顺便说一句,我正在使用 Zend Framerowk 2,对于目录服务,我正在使用 Active Directory。我尝试创建一些将数据添加到 Active Directory 的函数,但遇到了问题。总是显示错误信息
错误信息
0x35(服务器不愿意执行;0000209A:SvcErr:DSID-031A1081,问题5003(WILL_NOT_PERFORM)
这是我的代码
$ldap = new Ldap($ldap_config);
$ldap->bind();
//add member user into role
$entry = array();
Attribute::setAttribute($entry, 'objectclass', 'top');
Attribute::setAttribute($entry, 'objectclass', 'person');
Attribute::setAttribute($entry, 'objectclass', 'organizationalPerson');
Attribute::setAttribute($entry, 'objectclass', 'user');
Attribute::setAttribute($entry, 'cn', '123ABCD');
Attribute::setAttribute($entry, 'distinguishedname', "CN=123ABCD,OU=Staff,DC=project,DC=company,DC=go,DC=id");
Attribute::setAttribute($entry, 'dn', "CN=123ABCD,OU=Staff,DC=project,DC=company,DC=go,DC=id");
Attribute::setAttribute($entry, 'instancetype', 4);
Attribute::setAttribute($entry, 'displayName', "FebryFairuz");
Attribute::setAttribute($entry, 'sAMAccountName', "123ABCD");
Attribute::setAttribute($entry, 'employeeID', "123ABCD");
Attribute::setAttribute($entry, 'givenName', "Febry");
Attribute::setAttribute($entry, 'mail', "febryfairuz@hotmail.com");
Attribute::setAttribute($entry, 'memberOf', "CN=Default,OU=Role,DC=project,DC=company,DC=go,DC=id");
$result_update = $ldap->add("CN=123ABCD,OU=Staff,DC=project,DC=company,DC=go,DC=id", $entry);
var_dump($result_update);
Run Code Online (Sandbox Code Playgroud)
如果我删除Attribute::setAttribute($entry, 'memberOf', "CN=Default,OU=Role,DC=project,DC=company,DC=go,DC=id");它运行良好并且也插入到 …
我希望任何人都可以帮助我解决这个任务。我正在处理一些图像分类并尝试将 OpenCv 3.2.0 和 DL4J 结合起来。我知道DL4J也包含Opencv,但我认为它没什么用。
谁能帮我,如何转换成 INDArray ?我尝试在这里阅读一些问题,DL4J 的 NativeImageLoader 类提供了方法 asMatrix(Mat image)。但是当我尝试运行它时出现错误
java:找不到asMatrix(org.opencv.core.Mat)合适的方法
我不知道如何修复我的代码,或者我的代码可能有问题。谁能帮我找出问题所在?
顺便说一句,这是我的代码:
Mat imgMat = Imgcodecs.imread("C:\\Pictures\\image.jpg");
INDArray image = loader.asMatrix(imgMat);
Run Code Online (Sandbox Code Playgroud)
感谢您的关注。
在具有IP地址的计算机上10.11.12.123,我有一个文件夹document.我想/home/my-pc/doc/使用shell 将该文件夹复制到我的本地文件夹.
我试过这样的:
scp -r smb:10.11.12.123/other-pc/document /home/my-pc/doc/
Run Code Online (Sandbox Code Playgroud)
但它不起作用.