当前位置:网站首页>常见问题之PHP——ldap_add(): Add: Undefined attribute type in
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
2022-07-03 13:40:00 【CN華少】
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
背景
日常我们开发时,我们会遇到各种各样的奇奇怪怪的问题(踩坑o(╯□╰)o),这个常见问题系列就是我日常遇到的一些问题的记录文章系列,这里整理汇总后分享给大家,让其还在深坑中的小伙伴有绳索能爬出来。
同时在这里也欢迎大家把自己遇到的问题留言或私信给我,我看看其能否给大家解决。
开发环境
- 系统:windows10
- 语言:PHP
内容
错误
ldap_add(): Add: Undefined attribute type in...
造成原因:
使用ldap_add时添加的属性和其ldap服务器中设置的属性类型不一致导致。
解决方案:
1、使用phpldapadmin工具进行查看当前ldap服务器中具体支持的Attribute Types
2、与ldap_add中设置的用户属性进行对比名称、数据类型、是否必填进行对比确认。
另网上还有一种说法是由于dn中没有有效输入空格导致的,这个测试过程中没有发现该问题。
本文声明:

本作品由 cn華少 采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
边栏推荐
- 28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
- Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)
- [combinatorics] permutation and combination (two counting principles, examples of set permutation | examples of set permutation and circle permutation)
- Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
- How to bold text in AI
- FPGA test method takes mentor tool as an example
- Qt学习22 布局管理器(一)
- Common plug-ins for vite project development
- Why don't I have a rookie medal
- How to use lxml to judge whether the website announcement is updated
猜你喜欢
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
Redis:字符串类型数据的操作命令
好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录
Exercise 9-1 time conversion
[email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂"/>
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
How to use lxml to judge whether the website announcement is updated
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
Exercise 10-6 recursively find Fabonacci sequence
JVM runtime data area
[email protected])"/>
金属有机骨架(MOFs)抗肿瘤药载体|PCN-223装载甲硝唑|UiO-66包载盐酸环丙沙星([email protected])
随机推荐
Redis:字符串類型數據的操作命令
Multi person collaborative data annotation based on Baidu brain easydata from scratch
Current situation, analysis and prediction of information and innovation industry
JVM object lifecycle
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
JS shift operators (< <,> > and > > >)
Similarities and differences of sessionstorage, localstorage and cookies
Why don't I have a rookie medal
Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?
Exercise 9-3 plane vector addition
Programmable logic device software testing
7-9 find a small ball with a balance
Fabric. JS document
page owner特性浅析
金属有机骨架(MOFs)抗肿瘤药载体|PCN-223装载甲硝唑|UiO-66包载盐酸环丙沙星([email protected])
Qt学习21 Qt 中的标准对话框(下)
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
Common plug-ins for vite project development
Solve the problem of dormitory router campus network sharing login
Reflection -- basic usage