sshd, ldap, BSM auditing

  • Follow


Hi all,

I want a setup where users are authenticated with LDAP
and audited with BSM auditing.

I have confiured LDAP and BSM, with UseLogin set to yes in the
sshd_config file.

Logging on via su works fine, LDAP authentication and auditing work.

When I try to logon from another machine with ssh I can't login
anymore:
Login incorrect
Connection closed

When I put the UseLogin to no I can login but I don't have any
auditing.

Is there a solution or do I have to choose?
BTW: sun's sshd and open sshd behave the same way.

thanks for all answers.
0
Reply getridofthespam (120) 3/17/2009 10:36:41 AM

adirtymindisajoyforever <getridofthespam@yahoo.com> writes:

>Is there a solution or do I have to choose?
>BTW: sun's sshd and open sshd behave the same way.

Unlikely because Sun's SSH works with auditing enabled and I don't
support "UseLogin".

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 3/17/2009 10:50:43 AM


On 17 mrt, 11:50, Casper H.S. Dik <Casper....@Sun.COM> wrote:
> adirtymindisajoyforever <getridofthes...@yahoo.com> writes:
> >Is there a solution or do I have to choose?
> >BTW: sun's sshd and open sshd behave the same way.
>
> Unlikely because Sun's SSH works with auditing enabled and I don't
> support "UseLogin".
>
> Casper
> --
> Expressed in this posting are my opinions. =A0They are in no way related
> to opinions held by my employer, Sun Microsystems.
> Statements on Sun products included here are not gospel and may
> be fiction rather than truth.

tests tell a different story:

loginserver:

# grep -i uselogin  /etc/ssh/sshd_config
UseLogin yes
# /usr/lib/ssh/sshd -p 33
# grep -v UseLogin /etc/ssh/sshd_config > /etc/ssh/
sshd_config.nouselogin
# /usr/lib/ssh/sshd -p 44 -f /etc/ssh/sshd_config.nouselogin

client:
# ssh -p 44 op1@10.255.254.163
Password:
Last login: Tue Mar 17 11:40:19 2009 from 10.255.254.81

Last login: op1       sshd         10.255.254.81    Tue Mar 17 13:49
still logged in
op1@ls09943 # id
uid=3D60004(op1) gid=3D1(other)
op1@ls09943 # ^D
 Connection to 10.255.254.163 closed.

# ssh -p 33 op1@10.255.254.163
Password:
Login incorrect
Connection to 10.255.254.163 closed.




0
Reply adirtymindisajoyfore 3/17/2009 12:59:43 PM

adirtymindisajoyforever <getridofthespam@yahoo.com> writes:

>On 17 mrt, 11:50, Casper H.S. Dik <Casper....@Sun.COM> wrote:
>> adirtymindisajoyforever <getridofthes...@yahoo.com> writes:
>> >Is there a solution or do I have to choose?
>> >BTW: sun's sshd and open sshd behave the same way.
>>
>> Unlikely because Sun's SSH works with auditing enabled and I don't
>> support "UseLogin".
>>
>> Casper
>> --
>> Expressed in this posting are my opinions. =A0They are in no way related
>> to opinions held by my employer, Sun Microsystems.
>> Statements on Sun products included here are not gospel and may
>> be fiction rather than truth.

>tests tell a different story:

>loginserver:

># grep -i uselogin  /etc/ssh/sshd_config
>UseLogin yes
># /usr/lib/ssh/sshd -p 33
># grep -v UseLogin /etc/ssh/sshd_config > /etc/ssh/
>sshd_config.nouselogin
># /usr/lib/ssh/sshd -p 44 -f /etc/ssh/sshd_config.nouselogin

>client:
># ssh -p 44 op1@10.255.254.163
>Password:

Is that really Sun's SSH?

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 3/17/2009 3:03:04 PM

On 17 mrt, 16:03, Casper H.S. Dik <Casper....@Sun.COM> wrote:
> adirtymindisajoyforever <getridofthes...@yahoo.com> writes:
> >On 17 mrt, 11:50, Casper H.S. Dik <Casper....@Sun.COM> wrote:
> >> adirtymindisajoyforever <getridofthes...@yahoo.com> writes:
> >> >Is there a solution or do I have to choose?
> >> >BTW: sun's sshd and open sshd behave the same way.
>
> >> Unlikely because Sun's SSH works with auditing enabled and I don't
> >> support "UseLogin".
>
> >> Casper
> >> --
> >> Expressed in this posting are my opinions. =3DA0They are in no way rel=
ated
> >> to opinions held by my employer, Sun Microsystems.
> >> Statements on Sun products included here are not gospel and may
> >> be fiction rather than truth.
> >tests tell a different story:
> >loginserver:
> ># grep -i uselogin =A0/etc/ssh/sshd_config
> >UseLogin yes
> ># /usr/lib/ssh/sshd -p 33
> ># grep -v UseLogin /etc/ssh/sshd_config > /etc/ssh/
> >sshd_config.nouselogin
> ># /usr/lib/ssh/sshd -p 44 -f /etc/ssh/sshd_config.nouselogin
> >client:
> ># ssh -p 44 o...@10.255.254.163
> >Password:
>
> Is that really Sun's SSH?

 # /usr/lib/ssh/sshd -V
sshd: option requires an argument -- V
sshd version Sun_SSH_1.1

# uname -a
SunOS ls09943 5.10 Generic_127112-10 i86pc i386 i86pc

Some more tests; audit logs only created with openssh, not with sun
ssh...

>
> Casper
> --
> Expressed in this posting are my opinions. =A0They are in no way related
> to opinions held by my employer, Sun Microsystems.
> Statements on Sun products included here are not gospel and may
> be fiction rather than truth.

0
Reply adirtymindisajoyfore 3/17/2009 4:04:22 PM

4 Replies
211 Views

(page loaded in 0.477 seconds)


Reply: