Growing Joomla! Community is Our Goal.
พุธ 10 มีนาคม 2553
   
Text Size

Welcome, Guest
Please Login or Register.    Lost Password?

ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ
#271
ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ 5 Months, 2 Weeks ago Karma: 0
ผมได้ทำการติดตั้ง Server FreeBSD 7.0 แล้วลง OpenLDAP แล้วสามารถใช้งานได้ตามปกติ แต่ปัญหาของผมคือผมต้องการให้ joomla login โดยใช้ user ที่อยู่ใน LDAP โดยที่ผมได้ทำการใส่ค่าตามนี้ครับ
host=ตรงนี้ผมใส่ ip เครื่อง server ครับ
port=389
use_ldapV3= yes
negotiate_tls= no
no_referrals= no
auth_method= bind and search
base_dn=dc=xxx,dc=co,dc=th
search_string=uid=[search]
users_dn=uid=[username],ou=users,dc=xxx,dc=co,dc=th
username=
password=
ldap_fullname=fullName
ldap_email=mail
ldap_uid=uid

Login เสร็จแล้วเจอหน้าว่างๆ ไม่ทราบผมกำหนดอะไรผิดหรือเปล่าครับ หรือต้องลง plugin อะไรเสริมอีกหรือเปล่าครับ ขอรบกวนด้วยครับ ขอบคุณครับ
tnoom
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/09/21 16:01 By tnoom.
The administrator has disabled public write access.
 
#272
Re:ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ 5 Months, 2 Weeks ago Karma: 3
พอดีผมเองไม่เคยใช้ OpenLDAP นะครับ แต่แนะนำดังนี้ครับ
1. ทดสอบให้แน่ใจว่า OpenLDAP ใช้งานได้จริงๆ
2. ลองทดสอบโดยการติดตั้ง JDiagnostic แล้วใช้ ldapconfigurator ช่วยในการ setup ดูนะครับ มันจะให้เราทำตามขั้นตอนแล้ว config ตัว LDAP plugin ให้เลย

ได้ผลยังไงบอกด้วยครับ
MrS.Siam
Moderator
Posts: 116
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#273
Re:ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ 5 Months, 2 Weeks ago Karma: 0
ขอบคุณครับผมได้ลองติดตั้ง JDiagnostics แล้วครับพอติดตั้งเสร็จมันจะไปอยู่ในส่วน components ครับ พอลองเรียกที่ ldapconfigurator แล้วมันก็จะขึ้น LDAP: authentication (crit) PHP LDAP Library not detected ก็เลยไม่สามารถทดสอบได้ ผมก็เลยไปอ่านตาม website ต่างประเทศที่มีการ configure ร่วมกับ OpenLDAP โดยใช้ joomla ดังนี้ครับ
ซึ่งเขาให้สร้าง ldif file ก่อนเพื่อเป็นโครงสร้างรายละเอียดของเรา แล้วสิ่งที่ขาดไม่ได้ก็คือเรื่อง Schema โดยเขาแนะนำให้ทำการสร้างด้วยแล้วก็ทำการ include ไฟล์ .schema ซึ่งอาจจะตั้งเป็น joomla.schema โดยรายละเอียดการสร้างไฟล์ schema เขาแนะนำไว้ตามนี้ครับซึ่ง
อันนี้ผมอ่านจากตรงนี้ครับ forum.joomla.org/viewtopic.php?f=41&t=298446

# Joomla Group Attribute; free form text
attributetype ( 1.3.6.1.4.1.27457.1.1
NAME 'JoomlaGroup'
DESC 'Joomla: Group to belong to'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
# Joomla User Object Class
# Requires various elements
objectclass ( 1.3.6.1.4.1.27457.1.2
NAME 'JoomlaUser'
DESC 'User of a Joomla instance'
AUXILIARY
)


แต่ผมได้ไปทำการอ่านที่ sammoffatt.com.au/jauthtools/LDAP_Tools/Schema

แล้วเขาแนะนำให้สร้างตามนี้

# Joomla Group Attribute; free form text
attributetype ( 1.3.6.1.4.1.27457.1.1
NAME 'JoomlaGroup'
DESC 'Joomla: Group to belong to'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

# Joomla User Alias attribute; free form text
attributetype ( 1.3.6.1.4.1.27457.1.3
NAME ('uidAlias' 'useridAlias')
DESC 'Aliased user id'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

# Joomla Block User attribute; boolean
attributetype ( 1.3.6.1.4.1.27457.1.4
NAME 'JoomlaBlockUser'
DESC 'If the user should be blocked'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
)

# Joomla User Params; free form text
attributetype ( 1.3.6.1.4.1.27457.1.5
NAME 'JoomlaUserParams'
DESC 'Joomla User Parameters'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{65535} )

# Joomla User Object Class
# Requires various elements
# Extra name details are optional
objectclass ( 1.3.6.1.4.1.27457.1.2
NAME 'JoomlaUser'
DESC 'User of a Joomla instance'
AUXILIARY
MUST ( cn $ JoomlaGroup $ uid $ mail $ userPassword $ JoomlaBlockUser )
MAY ( givenName $ sn $ useridAlias $ displayName $ givenName $ initials $ JoomlaUserParams )
)

ซึ่งผมลองสร้างแล้วไม่ work เลยครับ อย่างหลังนี้พอเอาไป include เข้าไปใน slapd.conf แล้วปรากฏว่า start ldap ไม่ผ่านครับ แต่สำหรับอันบน ผมลองแล้ว start ldap ผ่าน แต่ก็ยังคงติดปัญหาเดิมอยู่คือ login ที่ joomla แล้วเป็นหน้าว่างๆไม่มีอะไรเลย ขอรบกวนอีกครั้งด้วยครับ ขอบคุณครับ
tnoom
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#276
Re:ขอสอบถามเรื่อง LDAP บน joomla 1.5 กับ OpenLDAP หน่อยครับ 5 Months, 2 Weeks ago Karma: 3
ขอทดลองก่อนครับ ยังไงถ้าแก้ปัญหาได้ก่อน ช่วยบอกวิธีเป็นวิทยาทานด้วยนะครับ ช่วยๆกัน
MrS.Siam
Moderator
Posts: 116
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
JoomlaWatch Stats 1.2.8b_12-dev by Matej Koval
Restore Default Settings