Openldap 스키마 추가 방법을 잘 모르겠는데, 방법과 샘플 화일을 좀 올려 주셨으면 합니다.
스키마파일을 만들고
이름을 잘 정해주고
이를 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 ldbmsuffix "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
이렇게도 가능한것 같네요
version = LDAP_VERSION3;
(void) ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,&version );
를 ldap_simple_bind_s 전에 넣어주시면 됩니다.