Forum .LRN Q&A: Re: External authentication with dotLRN (LDAP)

Collapse
Posted by Shahid Butt on
Contents of the Error Log

[07/Oct/2005:16:19:01][27638.4119059376][-conn:nccedudotlrn::2] Notice: Querying 'abort transaction;'
[07/Oct/2005:16:19:01][27638.4119059376][-conn:nccedudotlrn::2] Notice: Ns_PgExec: Rolling back transaction
[07/Oct/2005:16:19:01][27638.4119059376][-conn:nccedudotlrn::2] Notice: dbinit: sql(localhost::nccedudotlrn): 'abort transaction'
[07/Oct/2005:16:19:01][27638.4119059376][-conn:nccedudotlrn::2] Error: Error in include template "/var/lib/aolserver/nccedudotlrn/packages/acs-subsite/lib/user-new": Transaction aborted: nsldap [add]: No such object
nsldap [add]: No such object
while executing
"ns_ldap add nsldap0 {sAMAccountName=test2,cn=test,mail=test2.user@mydomain.com,cn=Users, dc=mydomain, dc=com} objectClass {top person user organizationalP..."
("eval" body line 1)
invoked from within
"eval [concat ns_ldap add [list $lh] [list $dn] $attributes]"
("uplevel" body line 3)
invoked from within
"uplevel $body "
("uplevel" body line 1)
invoked from within
"uplevel $on_error"
invoked from within
"with_catch errmsg {
ns_log Notice "LDAP: Adding user: [concat ns_ldap add [list $lh] [list $dn] $attributes]"
eval [concat ns_ldap add..."
(procedure "auth::ldap::registration::Register" line 34)
invoked from within
"auth::ldap::registration::Register $parameters $username $authority_id $first_names $last_name $screen_name $email
$url $password $secret_question $se..."
(procedure "AcsSc.auth_registration.register.ldap" line 1)
invoked from within
"AcsSc.auth_registration.register.ldap {BaseDN {cn=Users, dc=mydomain, dc=com} UsernameAttribute {sAMAccountNMame } PasswordHash N/A DNPattern sAMAccount..."
("uplevel" body line 1)
invoked from within
"uplevel $func_and_args"
(procedure "apply" line 3)
invoked from within
"apply $proc_name $arguments"
(procedure "acs_sc_call" line 6)
invoked from within
"acs_sc_call -error=$error_p $contract $operation $call_args $impl"
(procedure "acs_sc::invoke" line 17)
invoked from within
"acs_sc::invoke -error -impl_id $impl_id -operation Register -call_args [list $parameters $username $authority_id $first_names $last_name $scr..."
(procedure "auth::registration::Register" line 13)
invoked from within
"auth::registration::Register -authority_id $authority_id -username $username -password $password -first_names
$first_names -last_name $last_name ..."
invoked from within
"if { [string equal $creation_info(creation_status) "ok"] } {
# Need to find out which username was set
set username $creation_..."
("uplevel" body line 16)
invoked from within
"uplevel 1 $transaction_code "
(procedure "db_transaction" line 1)
invoked from within
"db_transaction {
array set creation_info [auth::create_local_account -user_id $user_id -authority_id $authority_id -username $username -ar..."
(procedure "auth::create_user" line 32)
invoked from within
"auth::create_user -user_id $user_id -verify_password_confirm -username $username -email $email -first_names $
first_names -last_name $last_name ..."
invoked from within
"array set creation_info [auth::create_user -user_id $user_id -verify_password_confirm -username $username -email $email -first_names $first_names..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $transaction_code "
(procedure "db_transaction" line 39)
invoked from within
"db_transaction {
array set creation_info [auth::create_user -user_id $user_id -verify_password_confirm -username $username -email $email ..."
("uplevel" body line 3)
invoked from within
"uplevel #$level $on_submit"
("1" arm line 1)
invoked from within
"switch $errno {
0 {
# TCL_OK
}
1 {
# TCL_E..."
(procedure "ad_form" line 612)
invoked from within
"ad_form -extend -name register -on_request {
# Populate elements from local variables

} -on_submit {

db_transaction {
array set crea..."
("uplevel" body line 67)
invoked from within
"uplevel {
# Expects parameters:
#
# self_register_p - Is the form for users who self register (1) or
# for administrators who..."
(procedure "code::tcl::/var/lib/aolserver/nccedudotlrn/packages/acs-s..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [template::util::url_to_file "/packages/acs-subsite/lib/user-new" "$__adp_stub"] [list next_ur
l "[lang::util::localize ${next_url}..."

Collapse
Posted by jyothi shekhar on
I am using Apache LDAP module.For that i need to register LDAP.
Collapse
Posted by jyothi shekhar on
If i give ldap://localhost/some description ,its giving the error like LDAP is not registered.Please reply.What i have to do the changes in the Apache configuration file or some changes in the browser?