database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
ㆍLDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
LDAP Q&A 2146 게시물 읽기
No. 2146
Openldap 스키마 추가 방법
작성자
류경호(upright)
작성일
2005-03-11 13:49
조회수
8,981

Openldap 스키마 추가 방법을 잘 모르겠는데, 방법과 샘플 화일을 좀 올려 주셨으면 합니다.

 

이 글에 대한 댓글이 총 3건 있습니다.

스키마파일을 만들고

이름을 잘 정해주고

 

 

이를 slapd.conf파일에 등록

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include  "../openldap/schema/core.schema"
include  "../openldap/schema/cosine.schema"
include  "../openldap/schema/inetorgperson.schema"
include  "../openldap/ldbm_org/dusher.schema"

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile  "../openldap/ldbm_org/slapd.pid"
argsfile "../openldap/ldbm_org/slapd.args"
loglevel -1

# Load dynamic backend modules:
# modulepath %MODULEDIR%
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la

#######################################################################
# ldbm database definitions
#######################################################################

database ldbm
suffix  "dc=dusher,dc=com"
rootdn  "cn=Manager, dc=dusher,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw  secret
# The database directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
directory "../openldap/ldbm_org"
# Indices to maintain
# index objectClass eq
# deny anonymous acces
# access to *
#                by anonymous read
#                by * read


 

송상준(sjsong)님이 2005-03-14 01:45에 작성한 댓글입니다.
이 댓글은 2005-03-14 01:47에 마지막으로 수정되었습니다.

이렇게도 가능한것 같네요

slapd.conf:
schemaconfigdn “cn=schema,cn=config,dc=example,dc=com”
LDIF:
dn: cn=schema,cn=config,dc=apple,dc=com
cn: schema
objectClass: top
objectClass: container
objectClass: extensibleObject
attributeTypesConfig: ( 2.16.840.1.113730.3.1.13 NAME 'mailLocalAddress'
DESC 'RFC822 email address of this recipient' EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributeTypesConfig: ( 2.16.840.1.113730.3.1.18 NAME 'mailHost' DESC
'FQDN of the SMTP/MTA of this recipient' EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )
attributeTypesConfig: ( 2.16.840.1.113730.3.1.47 NAME 'mailRoutingAddress'
DESC 'RFC822 routing address of this recipient' EQUALITY
caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE)
objectClassesConfig: ( 2.16.840.1.113730.3.2.147 NAME
'inetLocalMailRecipient' DESC 'Internet local mail recipient' SUP top
AUXILIARY MAY ( mailLocalAddress $ mailHost $ mailRoutingAddress ) )
송상준(sjsong)님이 2005-03-18 19:14에 작성한 댓글입니다.
이 댓글은 2005-03-18 19:15에 마지막으로 수정되었습니다.

  version = LDAP_VERSION3;

  (void) ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,&version ); 
 

를  ldap_simple_bind_s 전에 넣어주시면 됩니다.

이상준님이 2005-08-01 17:57에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2150LDAP클라이언트 시스템... [2]
정철호
2005-03-17
10033
2148PHP를 이용한 웹에서 LDAP ADD에대한 질문 [1]
윤성중
2005-03-16
8702
2147slapd 데몬이 생성되지 않아요 [2]
윤성중
2005-03-11
8157
2146Openldap 스키마 추가 방법 [3]
류경호
2005-03-11
8981
2145openldap 을 구동시 오류입니다. [3]
윤성중
2005-03-09
7969
2144여러분.. 정말 감사합니다.. ㅠㅠ [1]
사회초년생
2005-03-08
7857
2143[Q] C++ 라이브러리와 Java 라이브러리를 동시에 사용할 수 있나요? [1]
Hazulnut
2005-03-08
7651
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.050초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다