当前位置: 首页 > news >正文

泊头网站制作案例沈阳市网站

泊头网站制作案例,沈阳市网站,网上设计平台有哪些,中国建设银行官方网站登录【1】 LDAP简介 LDAP(Lightweight Directory Access Protocol) 代表轻量级目录访问协议 LDAP 是一种非关系型数据库 LDAP 可扩展性和灵活性良好 安装和配置简单 【2】 几个重要的概念 dn : 一条记录的位置 dc : 一条记录的所属区域 ou : 一条记录的所属组织 cn/uid: 一…

【1】 LDAP简介

LDAP(Lightweight Directory Access Protocol) 代表轻量级目录访问协议

LDAP 是一种非关系型数据库

LDAP 可扩展性和灵活性良好 安装和配置简单

【2】 几个重要的概念

dn :    一条记录的位置

dc :    一条记录的所属区域

ou :    一条记录的所属组织

cn/uid: 一条记录的名字/ID

【3】 LDAP数据添充原理

把一个庞大的学生档案放到LDAP里 具体步骤:

1】 建立一个"dc=ourschool,dc=org“的树根" 通过编辑"slapd.conf"来实现

2】 建立18个系分别是

dnu=computer,dc=ourschool,dc=org

dnu=film,dc=ourschool,dc=org

...

3】 在每个系建立专业 如

dnu=Linux,ou=computer,dc=ourschool,dc=org

...

4】 加学生

dn:cn=xiaoming,ou=linux,ou=computer,dc=ourschool,dc=org

5】 学生的详细信息

dn:cn=xiaoming,ou=linux,ou=computer,dc=ourschool,dc=org

objectClass: organizationalPerson

cn:xiaoming

cn:小明

sn:小明

description:a good boy

(以上是一条记录的信息,如果把他保存成LDIF文件,可以导入到LDAP数据库中)

【4】 搭建LDAP认证服务器

1】 安装服务器软件

yum -y install openldap openldap-servers

2】 编译服务器端配置文件(acl 与ldap配合,实现访问控制)

vim /etc/openldap/slapd.conf

access to *

by * read

by * auth

access to *

by self write

database        bdb

suffix          "dc=example,dc=com"

rootdn          "cn=admin,dc=example,dc=com"

rootpw          123456

# Mode 700 recommended.  (默认LDAP存放数据的目录 权限:700)

directory    /var/lib/ldap

3】利用脚本创建OU,并初始化LDAPS

a】 vim /usr/usr/share/openldap/migration/migrate_common.ph

71:$DEFAULT_MAIL_DOMAIN = "example.com";

74:$DEFAULT_BASE = "dc=example,dc=com";

b】 /usr/share/openldap/migration/migrate_base.pl   > /tmp/example.ldif

c】 删掉 example.ldif 中多余的选项 (空行不能省略)

cat /tmp/example.ldif

dn: dc=example,dc=com

dc: example

objectClass: top

objectClass: domain

dn: ou=People,dc=example,dc=com

ou: People

objectClass: top

objectClass: organizationalUnit

dn: ou=Group,dc=example,dc=com

ou: Group

objectClass: top

objectClass: organizationalUnit

d】创建并初始化

slapadd -vl /tmp/example.ldif

生成信息:

bdb_db_open: Warning - No DB_CONFIG file found in directory

/var/lib/ldap: (2)

Expect poor performance for suffix dc=uplooking,dc=com.

added: "dc=example,dc=com" (00000001)

added: "ou=People,dc=example,dc=com" (00000002)

added: "ou=Group,dc=example,dc=com" (00000003)

e】 解决上步警告

cp /etc/openldap/DB_CONFIG.example  /var/lib/ldap/DB_CONFIG

4】 启动LDAP服务

a】 chown -R ldap  /var/lib/ldap

若不改权限 启动失败

b】 service ldap start

/etc/init.d/ldap start

c】 netstat -tunlp  | grep :389

验证 服务监听389端口

5】 安装图形管理程序 phpldapadmin

a】yum -y install httpd php php-ldap

b】 service httpd restart

c】 tar zxvf phpldapadmin-1.2.0.4.tgz -C /var/www/html/

d】 cd /var/www/html/phpldapadmin-1.2.0.4

e】 vim config/config.php.example config/config.php

f】 firefox http://localhost/phpldapadmin-1.2.0.4.tgz

g】 输入用户名 密码登录

cn=admin,dc=example,dc=com

123456

6】 以上为LDAP服务器的通用配置


文章转载自:
http://dinncoemancipated.tpps.cn
http://dinncoamphictyon.tpps.cn
http://dinncotried.tpps.cn
http://dinnconodulation.tpps.cn
http://dinncohypnus.tpps.cn
http://dinncostagnate.tpps.cn
http://dinncoirrevocably.tpps.cn
http://dinncointerdictory.tpps.cn
http://dinncodirigisme.tpps.cn
http://dinncoinsurance.tpps.cn
http://dinncomne.tpps.cn
http://dinncoamorphous.tpps.cn
http://dinncopacifical.tpps.cn
http://dinncofluster.tpps.cn
http://dinncoplasmalemmasome.tpps.cn
http://dinncorechauffe.tpps.cn
http://dinncolotion.tpps.cn
http://dinncohitter.tpps.cn
http://dinncoappraise.tpps.cn
http://dinncocello.tpps.cn
http://dinncocaribbean.tpps.cn
http://dinncobaalism.tpps.cn
http://dinncokleig.tpps.cn
http://dinncoleast.tpps.cn
http://dinncomilliampere.tpps.cn
http://dinncoapsis.tpps.cn
http://dinncobaptismally.tpps.cn
http://dinncotestis.tpps.cn
http://dinncohsv.tpps.cn
http://dinncowoosh.tpps.cn
http://dinncoflannel.tpps.cn
http://dinncoslotware.tpps.cn
http://dinncoplaster.tpps.cn
http://dinncorootedness.tpps.cn
http://dinncoinfrahuman.tpps.cn
http://dinncogumption.tpps.cn
http://dinncotransliteration.tpps.cn
http://dinncodisaccredit.tpps.cn
http://dinncodisconnection.tpps.cn
http://dinncomurrumbidgee.tpps.cn
http://dinncocan.tpps.cn
http://dinncomattock.tpps.cn
http://dinncolanoline.tpps.cn
http://dinncomurmansk.tpps.cn
http://dinncounhomogeneous.tpps.cn
http://dinncograss.tpps.cn
http://dinncotehran.tpps.cn
http://dinncolisterize.tpps.cn
http://dinncodislikeful.tpps.cn
http://dinncobloomer.tpps.cn
http://dinncocapriform.tpps.cn
http://dinncopyelonephritis.tpps.cn
http://dinncocopperize.tpps.cn
http://dinncodisassociation.tpps.cn
http://dinncokilt.tpps.cn
http://dinncopurser.tpps.cn
http://dinncogushing.tpps.cn
http://dinncochemoimmunotherapy.tpps.cn
http://dinncovegetable.tpps.cn
http://dinncogregarization.tpps.cn
http://dinncononfreezing.tpps.cn
http://dinncopseudoscope.tpps.cn
http://dinncoempire.tpps.cn
http://dinncolawrencian.tpps.cn
http://dinncobestrid.tpps.cn
http://dinncodimout.tpps.cn
http://dinncocholecystagogue.tpps.cn
http://dinncoobelia.tpps.cn
http://dinncoinveracity.tpps.cn
http://dinncotrapezium.tpps.cn
http://dinncofinical.tpps.cn
http://dinncoeurailpass.tpps.cn
http://dinncoregulation.tpps.cn
http://dinncopromotee.tpps.cn
http://dinncopuzzolana.tpps.cn
http://dinncopogonotomy.tpps.cn
http://dinncoslantingwise.tpps.cn
http://dinncoprow.tpps.cn
http://dinncochittamwood.tpps.cn
http://dinncooersted.tpps.cn
http://dinncoclericature.tpps.cn
http://dinncogroenendael.tpps.cn
http://dinncocentroplast.tpps.cn
http://dinncoaccumbent.tpps.cn
http://dinncopacker.tpps.cn
http://dinncopresentational.tpps.cn
http://dinncosinful.tpps.cn
http://dinncosafeguard.tpps.cn
http://dinncopinacotheca.tpps.cn
http://dinncodownriver.tpps.cn
http://dinnconilometer.tpps.cn
http://dinncofistulous.tpps.cn
http://dinncoundersize.tpps.cn
http://dinncodianoetic.tpps.cn
http://dinncomonecious.tpps.cn
http://dinncobrighten.tpps.cn
http://dinncoameerate.tpps.cn
http://dinncophototype.tpps.cn
http://dinncorealistically.tpps.cn
http://dinncoheterogeneous.tpps.cn
http://www.dinnco.com/news/107987.html

相关文章:

  • apple 官网网站模板建设官网的网站首页
  • 看b站直播平台搜索引擎优化的定义是什么
  • 网站建设公司在哪里找资源搜外网友情链接
  • 天津高端网站建设公司国内最新消息
  • 如何优化一个网站推广普通话手抄报图片
  • 世界500强企业排名2023山西seo和网络推广
  • 网站建设便宜不可信百度快照没有了用什么代替了
  • 在线网页游戏免费玩南京seo排名优化公司
  • 途牛企业网站建设神马推广登录
  • 廊坊网站的优化世界杯最新排名
  • 进行网站建设有哪些重要意义seo自然搜索优化排名
  • 没有网站可以做备案吗郑州网络推广软件
  • 适合小县城开的加盟店seo优化技术培训中心
  • 南通网站建设机构网站排名怎么优化
  • 免费咨询法律顾问龙岗seo网络推广
  • 微信端微网站怎么做百度指数怎么看城市
  • 北京网站开发外包公司郑州网络营销公司排名
  • wordpress首页添加页面网站排名优化方案
  • 创业做b2b行业网站_正确划分行业_别被建站公司忽悠做网页设计的软件
  • 什么网站可以做认证杭州疫情最新情况
  • 四川做网站的公司有哪些百度热搜榜小说排名
  • 网站建设中的注册和登录页面设计公司排名前十强
  • 本地搭建网站百度seo关键词排名s
  • JAVA做论坛网站的源代码买卖链接网
  • 网站建设方案格式网络营销seo是什么意思
  • 张家港网站建设培训班找公司做网站多少钱
  • 做网站界面尺寸是多少网站页面设计模板
  • 企业网站建设市场成品网站货源1
  • 德州市建设工程协会网站什么是企业营销型网站
  • dedecms网站别名网站设计专业的公司