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 873 게시물 읽기
No. 873
ADsPath밖에 못갖구 오네요. 왜그런지 도움요청 드려도 될까요?
작성자
sadhu
작성일
2001-07-31 19:01
조회수
4,861

asp로 ADSI 프로그래밍을 했는데요.

바인딩 후 속성값들을 볼려고 하는데, ADsPath 밖에 나오질 않습니다.

그리고 밑에 질문드렸던 검색하는 문제도 마찬가지로 ADsPath밖에 찾질 못하고 있습니다.

제가 지금 하고 있는것은 DC Directory이구요.

아래 asp 소스가 DC Directory에서만 안되는 것인지 아니면 다른 LDAP 서버에서도 안되는 것인지 궁금하네요.

제가 볼 때 DC Directory에서 정의된 속성이름이 LDAP 표준과 좀 다른 듯 해서요.

그리구 DC Directory에서만 안된다면 왜 그러는 것인지 궁금합니다.

해결방안이 있는 것인지 고수님들께 조언 좀 부탁드립니다.

 

아래는 DC Directory에 나와 있는 것 중 description에 대한 예입니다.

 

Define OID Description

DisplayName Description

DottedOID 2.5.4.13

LDAPName description

 

asp 소스입니다. %를 ?로 모두 바꿨습니다.

 

<?

on error resume next

 

Dim strADsPath

strADsPath = Request.Form("ADsPath")

Dim strUserName

strUserName = Request.Form("UserName")

Dim strPassword

strPassword = Request.Form("Password")

Dim iFlags

iFlags = Request.Form("Flags")

?>

.

.

.

.

.

<?

if (not strADsPath= "") then

 

' bind to the ADSI object. If user has supplied a username, then

' authenticate too

Dim oADsObject

 

if (strUserName = "") then

response.write "Not Authenticating"

Set oADsObject = GetObject(strADsPath)

else

response.write "Authenticating"

Dim strADsNamespace

Dim oADsNamespace

strADsNamespace = left(strADsPath, instr(strADsPath, ":"))

 

set oADsNamespace = GetObject(strADsNamespace)

 

Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strUserName, strPassword, 0)

end if

 

' we've only managed to bind if err.number = 0

if not (Err.number = 0) then

Response.Write "Failed to bind to object " & strADsPath

response.write err.description

Response.write "Error number is " & err.number

else

Response.Write "Currently viewing object at " & oADsObject.ADsPath

Response.Write "Class is " & oADsObject.Class

 

dim oOu

Set oOu = oADsObject.GetObject("User", "cn=userid")

oOu.GetInfo

response.write "1 " & oOu.cn

response.write "2 " & oOu.sn

response.write "3 " & oOu.description

response.write "4 " & oOu.email

response.write "5 " & oOu.TelephoneNumber

response.write "6 " & oOu.ADsPath

response.write "7 " & oOu.mobile

response.write "8 " & oOu.homePhone

 

 

end if

 

 

 

end if

?>

[Top]
No.
제목
작성자
작성일
조회
878CA의 인증서를 openldap에 저장 성공!!(ldap 버그가 있는거 같습니다.)
노대성
2001-08-03
4625
875이런질문을??..
방문자
2001-08-02
4359
876┕>Re: 이런질문을??..
박근오
2001-08-03 09:22:59
5007
874backend에 대해서
야부키
2001-08-01
4360
877┕>Re: backend에 대해서
박근오
2001-08-03 09:26:30
4875
873ADsPath밖에 못갖구 오네요. 왜그런지 도움요청 드려도 될까요?
sadhu
2001-07-31
4861
872Win200에 Netscape Directory Server를 설치하려는데.. 시작부터 문제발생입니다.
부탁
2001-07-31
4666
870win용 openldap 설치방법좀...
안녕하세요
2001-07-31
4933
869초보... 인증서를 저장하고 싶은데..
궁금이
2001-07-31
4954
882┕>Re: 초보... 인증서를 저장하고 싶은데..
노대성
2001-08-04 15:25:31
5728
889 ┕>Re: Re: 초보... 인증서를 저장하고 싶은데..
궁금이
2001-08-06 18:11:45
5441
896  ┕>Re: Re: Re: 초보... 인증서를 저장하고 싶은데..
노대성
2001-08-07 16:48:38
5806
904   ┕>Re: Re: Re: Re: 초보... 인증서를 저장하고 싶은데..
궁금이
2001-08-10 00:14:25
5310
912    ┕>Re: Re: Re: Re: Re: 초보... 인증서를 저장하고 싶은데..
노대성
2001-08-13 16:21:30
5369
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.024초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다