Re: [rt-users] RT - Oracle db authentication as secondary methode

2011-06-20 Thread Asanka
Hi Thomas, thanks for the reply, I have removed all that MY_Oracle from the
config file and its works.

But when I go to select users it dont list database only users (I can see all
the LDAP users)







2011 Training: http://bestpractical.com/services/training.html


Re: [rt-users] RT - Oracle db authentication as secondary methode

2011-05-25 Thread Thomas Sibley
On 05/25/2011 12:04 AM, Asanka Gunasekera wrote:
 Hi all, I am trying o configure RT-Authen-ExternalAuth, as per the
 documentation with this I can see you can have more than one mode of
 authentication (LDAP, DB etc).
 
 Now my LDAP (AD) integration is fine, but what my issue now is to get RT
 to authenticate against Oracle DB as its secondary authentication
 method, and I am lost with this.

You appear to be trying to have ExternalAuth authenticate against the RT
users table as a fallback.  Don't configure it that way, it's dangerous
and unnecessary.  ExternalAuth will automatically fallback to internal
RT users without any configuration.  Just get rid of the My_Oracle bits
entirely.

Thomas

 *Following are my system details*
 
 OS – Redhat 5.4 (64bit)
 
 Oracle – 10g2 (64bit)
 
 RT - 3.8.8
 
 Perl - v5.12.2)
 
 *Modules which are loaded:*
 
 DBD::Oracle
 
 DBI
 
  
 
 *I have done the following configuration *
 
 /Set($ExternalAuthPriority,  [   'My_LDAP',  'My_Oracle'   ]);/
 
 /Set($ExternalInfoPriority,  [ 'My_LDAP', 'My_Oracle' ]);/
 
 /Set($ExternalServiceUsesSSLorTLS,0);/
 
 /Set($AutoCreateNonExternalUsers,0);/
 
 / /
 
 /Set($ExternalSettings,  {   # AN EXAMPLE DB SERVICE/
 
 /'My_Oracle'   =  {  ## GENERIC
 SECTION/
 
 /# The type of
 service (db/ldap/cookie)/
 
 /   
 'type'  =  'db',/
 
 /# The server
 hosting the service/
 
 /   
 'server'=  localhost,/
 
 /##
 SERVICE-SPECIFIC SECTION/
 
 /# The database
 name/
 
 /   
 'database'  =  'RT',/
 
 /# The database
 table/
 
 /   
 'table' =  'USERS',/
 
 /# The user to
 connect to the database as/
 
 /   
 'user'  =  'rtdb1',/
 
 /# The password
 to use to connect with/
 
 /   
 'pass'  =  'rtdb1secret',/
 
 /# The port to
 use to connect with (e.g. 3306)/
 
 /  
  'port'  =  '1521',/
 
 /# The name of
 the Perl DBI driver to use (e.g. mysql)/
 
 /   
 'dbi_driver'=  'Oracle',/
 
 /# The field in
 the table that holds usernames/
 
 /   
 'u_field'   =  'NAME',/
 
 /# The field in
 the table that holds passwords/
 
 /   
 'p_field'   =  'PASSWORD',/
 
 /# The Perl
 package  subroutine used to encrypt passwords/
 
 /# e.g. if the
 passwords are stored using the MySQL v3.23 PASSWORD/
 
 /# function,
 then you will need Crypt::MySQL::password, but for the/
 
 /# MySQL4+
 password function you will need Crypt::MySQL::password41/
 
 /#
 Alternatively, you could use Digest::MD5::md5_hex or any other/
 
 /# encryption
 subroutine you can load in your perl installation/
 
 /   
 'p_enc_pkg' =  'Crypt::MySQL',/
 
 /   
 'p_enc_sub' =  'password',/
 
 /# If your
 p_enc_sub takes a salt as a second parameter,/
 
 /# uncomment
 this line to add your salt/
 
 /   
 #'p_salt'=  'SALT',/
 
 /#/
 
 /# The field and
 values in the table that determines if a user should/
 
 /# be disabled.
 For example, if the