[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
back-sql and oracle and uid
- To: openldap-software@openldap.org
- Subject: back-sql and oracle and uid
- From: Nikethan Nagula Raja <nikethan@us-buxton.com>
- Date: Fri, 8 Jan 2010 15:21:49 -0800
- Cc: adamson@andrew.cmu.edu
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9ppq3KPDk4256WnonTOwhu8NpWGLlCAtzptXRMZ04ZA=; b=SZxolv39NPSQyeNmaBHdj2deNc1Zu6dwy2qeGOpHafKYoWWFpToY4xa6JxG69gC/jK PTDUE6V0HEMV2GS+jML/x6Viyf3+7hc8BoP1EP+jPb3qGX7FriGv6a+ECns2+Rt1LC2q 4QlQZA64dzoAuOcjBfYvjSLt822b1B/VPlxfY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=J8WwmHG1p9eY7RT7WyNl4NRE1lloiU3jFpk+4EaZpCgYCSQmz3/9LipzR9H2Y2lxTl Bq/tzf4mbJa1CUfrmWdFGEDwlarm45F9MNyvV0pjGelgzdrfQuNB7TSlPyfoJkNx+7J1 7mnoKcEzAssO9eGQfwA3AF9pIBEGZ28eMYHvQ=
There is an old unanswered post by Mark Adamson from Carnegie Mellon.
Right now I'm facing the same issue.
Here is the Post URL:
http://www.openldap.org/lists/openldap-software/200209/msg00724.html
Oracle has reserved the word "uid", so I can't use it
as a column name in a table or as a "name" in ldap_attr_mappings.
I named my column "userid" , the LDAP query still puts
in "select username uid ", and the "AS uid" makes the query fail.
Essentially, I can't have an LDAP attribute named "uid".
Has anyone else seen this or found a workaround?
==>backsql_get_attr_vals(): oc="NetAcadPerson" attr="uid" keyval=295107
backsql_get_attr_vals(): number of values in query: 1
backsql_get_attr_vals(): error executing attribute query "SELECT
NetacadPersons.username uid FROM NetacadPersons WHERE
NetacadPersons.NetAcadUserID=? ORDER BY uid"
Return code: -1
nativeErrCode=923 SQLengineState=S1000
msg="[unixODBC][Oracle][ODBC][Ora]ORA-00923: FROM keyword not found
where expected
If you look at the above log for Object Class = "NetAcadPerson" , its
trying to query attribute uid. But I have not defined any attribute
with name "uid" in the ldap_attr_mappings or in the schema containg
Object class.
Any work around on this is appreciated.
-Nikethan Nagula Raja