JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY Archives

MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY  November 2011

MOONSHOT-COMMUNITY November 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

help ldap auth getent passwd

From:

Brian Abram <[log in to unmask]>

Reply-To:

Moonshot community list <[log in to unmask]>, Brian Abram <[log in to unmask]>

Date:

Tue, 8 Nov 2011 11:27:28 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (148 lines)

Hi

I have been trying to set up ldap authentication for over a day
and made all the usual mistakes including the current one
which I can't find it although its likely to be connected with:

  nss_base_passwd

---------------------------------------------------------------------
While I am asking for help I should explain what I am trying to achieve:

I would like to forward a request for authentication to say 
umbrella.psi.net if the user is in ldap but not the password.

so if the [log in to unmask] exists without a password should I
a) configure ldap to forward a request for authentication
b) fall back into the pam stack and use another pam module to talk to 
umbrella.psi.net

so that 'account required' is satisfied
and authentication is satisfied if the forwarded authentication is 
successful?

Which approach requires the least prior knowledge?
I have more experience with RADIUS than LDAP, GSS, PAM

And what is the chance of me being able to demonstrate this by Wednesday 
or Thursday?

I previously had non-local users get forwarded to RADIUS using 
pam_radius, and successfully authenticated
but the user couldn't ssh because they didn't have a local account.

However, I have now set up local accounts in LDAP if only I could get it 
to work.

For the purposes of demonstration I think it be easier for me
fallback into pam_radius and get RADIUS to talk to umbrella

Any advice greatly appreciated...


---------------------------------------------------------------------
extract from ldap.conf:

nss_base_passwd		ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk?one
nss_base_shadow		ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk?one
nss_base_group		ou=Group,dc=testshib1,dc=diamond,dc=ac,dc=uk?one

---------------------------------------------------------------------

tail of auth log:

Nov  8 10:21:47 wcap93-virtual-machine slapd[7429]: DIGEST-MD5 common 
mech free
Nov  8 10:24:56 wcap93-virtual-machine getent: nss_ldap: failed to bind 
to LDAP server ldap://127.0.0.1: Invalid DN syntax
--------------------------------------------------------
Is it using a totally blank DN because I don't see what it is trying to 
use as a DN in the output from getent?
--------------------------------------------------------

This works

ldapsearch -x -LLL -H ldap:/// -b dc=testshib1,dc=diamond,dc=ac,dc=uk dn


and so does this


ldapsearch -x -LLL -H ldap:/// -b ou=Users,
dc=testshib1,dc=diamond,dc=ac,dc=uk dn

I had previously mixed up ou=People and ou=Users but I think I have 
fixed those errors now
-----------------------------------------------------------
so my users look like this

ldapsearch -x -LLL -H ldap:/// -b dc=testshib1,dc=diamond,dc=ac,dc=uk dn
dn: dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: cn=admin,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: ou=Groups,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: 
[log in to unmask],ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: 
[log in to unmask],ou=Users,dc=testshib1,dc=diamond,dc=ac,
  dc=uk

dn: uid=fredinldap,ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: uid=mandymd5,ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk

dn: uid=mandysha512,ou=Users,dc=testshib1,dc=diamond,dc=ac,dc=uk
---------------------------------------------------------------
getent :

ldap_write: want=66, written=66
   0000:  30 40 02 01 01 60 3b 02  01 03 04 2e 22 63 6e 3d 
0@...`;....."cn=
   0010:  61 64 6d 69 6e 2c 64 63  3d 74 65 73 74 73 68 69 
admin,dc=testshi
   0020:  62 31 2c 64 63 3d 64 69  61 6d 6f 6e 64 2c 64 63 
b1,dc=diamond,dc
   0030:  3d 61 63 2c 64 63 3d 75  6b 22 80 06 73 65 63 72 
=ac,dc=uk"..secr
   0040:  65 74                                              et 

ldap_result ld 0x1c5a390 msgid 1
wait4msg ld 0x1c5a390 msgid 1 (timeout 30000000 usec)
wait4msg continue ld 0x1c5a390 msgid 1 all 0
** ld 0x1c5a390 Connections:
* host: 127.0.0.1  port: 389  (default)
   refcnt: 2  status: Connected
   last used: Tue Nov  8 10:24:56 2011


** ld 0x1c5a390 Outstanding Requests:
  * msgid 1,  origid 1, status InProgress
    outstanding referrals 0, parent count 0
   ld 0x1c5a390 request count 1 (abandoned 0)
** ld 0x1c5a390 Response Queue:
    Empty
   ld 0x1c5a390 response count 0
ldap_chkResponseList ld 0x1c5a390 msgid 1 all 0
ldap_chkResponseList returns ld 0x1c5a390 NULL
ldap_int_select
read1msg: ld 0x1c5a390 msgid 1 all 0
ber_get_next
ldap_read: want=8, got=8
   0000:  30 16 02 01 01 61 11 0a                            0....a.. 

ldap_read: want=16, got=16
   0000:  01 22 04 00 04 0a 69 6e  76 61 6c 69 64 20 44 4e 
."....invalid DN
ber_get_next: tag 0x30 len 22 contents:
ber_dump: buf=0x1c63ce0 ptr=0x1c63ce0 end=0x1c63cf6 len=22
   0000:  02 01 01 61 11 0a 01 22  04 00 04 0a 69 6e 76 61 
...a..."....inva
   0010:  6c 69 64 20 44 4e                                  lid DN 

read1msg: ld 0x1c5a390 msgid 1 message type bind

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2022
December 2021
October 2021
September 2021
August 2021
June 2021
April 2021
February 2021
January 2021
December 2020
November 2020
October 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
January 2020
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
June 2018
April 2018
November 2017
October 2017
September 2017
August 2017
July 2017
May 2017
April 2017
March 2017
February 2017
November 2016
October 2016
August 2016
July 2016
June 2016
May 2016
March 2016
February 2016
January 2016
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager