SQLSERVER数据库怎么启用LDAP目录服务

 时间:2026-04-22 20:43:00

1、如果单纯的讲slapd.conf的配置还是比较简单的。例子如下###### sql database definitions###database sqlsuffix "o=sql,c=RU"rootdn "cn=root,o=sql,c=RU"rootpw secretdbname ldap_mysqldbuser rootdbpasswd subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"insentry_stmt "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval) VALUES (?,?,?,?)"has_ldapinfo_dn_ru no

2、在批量的修改表名和列名的时候,需要更新系统表。需要对其进行配置。测试用例:

------启用对系统目录的特殊更新USE mastersp_configure 'allow updates',1GORECONFIGURE WITH OVERRIDEGOuse code_tmpupdate sysobjectsset  name = rtrim(a.英文名称)from code_tmp.dbo.表名对照$ as a inner joinsysobjects bon b.name = rtrim(a.代码表)where b.xtype = 'u'

select * from syscolumns   where id in (select id from sysobjects where xtype = 'u')

select * from dbo.Drainage_Type

3、--禁用对系统目录的特殊更新USE masterGOsp_configure 'allow updates', 0GORECONFIGURE WITH OVERRIDEGO----select * from dbo.字段对照表$select * from syscolumns where id in (select id from sysobjects where xtype = 'u')

4、--启用对系统目录的特殊更新USE mastersp_configure 'allow updates',1GORECONFIGURE WITH OVERRIDEGOuse code_tmpupdate syscolumnsset name =rtrim(a.英文名)from code_tmp.dbo.字段对照表$ as a inner join syscolumns as bon rtrim(a.字段名)=b.namewhere b.id in(select id from sysobjects where xtype = 'u')

5、--禁用对系统目录的特殊更新USE masterGOsp_configure 'allow updates', 0GORECONFIGURE WITH OVERRIDEGO

  • 北斗邀约事件攻略
  • 原神罗莎莉亚圣遗物推荐?
  • 王者荣耀我让他的语音包在哪领取?
  • 怎么在足球场学踢球?
  • 原神怎么获得香菱的好感度出锅
  • 热门搜索
    一年级感恩手抄报 学会感恩手抄报图片 争做最美少年手抄报 中秋节手抄报的内容 三年级手抄报保护环境 中国板报网手抄报 母爱手抄报内容 文明在我身边手抄报 好词好句手抄报 小学生读书手抄报内容