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

  • 北斗邀约事件攻略
  • 原神罗莎莉亚圣遗物推荐?
  • 王者荣耀我让他的语音包在哪领取?
  • 怎么在足球场学踢球?
  • 原神怎么获得香菱的好感度出锅
  • 热门搜索
    碧桂园房子质量怎么样 小孩头晕是怎么回事 洋溢的近义词 确实的近义词 怎么更改默认浏览器 刘海发型 怎么哭出来 淘宝花呗怎么还款 我的世界怎么做火把 鼠标怎么设置