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

 时间:2026-02-12 11:42:42

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

  • 北斗邀约事件攻略
  • 原神罗莎莉亚圣遗物推荐?
  • 王者荣耀我让他的语音包在哪领取?
  • 怎么在足球场学踢球?
  • 原神怎么获得香菱的好感度出锅
  • 热门搜索
    众信旅游网 云南有哪些旅游景点 台儿庄旅游 张家界旅游攻略及费用 苏梅岛旅游攻略 北京的旅游景点 嘉峪关旅游 东兴旅游 中国旅游胜地 滁州旅游