Re: Security Logging in ADAM
- From: "Lee Flight" <lef@xxxxxxxxxxxxxxx>
- Date: Tue, 20 Feb 2007 22:02:21 -0000
Hi
the audit events
Successful Network Logon:
User Name: ADAM_Manager
Domain: XXXXXXXX
Logon ID: (0x0,0x16BFCCA)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name: XXXXXXXX
are audits of domain accounts logons you get these with "Audit logon events"
enabled
in the security policy of the server. For the ADAM native users logons to be
audited
you need "Audit account logon events" enabled in the server security policy.
Lee Flight
"LM" <merrittf@xxxxxxxx> wrote in message
news:1171994024.170916.154990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 16, 7:23 am, "Joe Kaplan"
<joseph.e.kap...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Can you explain what you mean by your Tomcat app doing an anonymous login
to
authenticate the user? On the surface, that seems to be a conflicting
statement. How does an anonymous login authenticate anyone?
If a bind was performed against ADAM, there should be a matching audit
event
in the security event log on the ADAM machine assuming that logon events
are
audited and the service account has the privilege enabled to generated
security audits.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"http://www.directoryprogramming.net
--"LM" <merri...@xxxxxxxx> wrote in message
news:1171583540.883253.301550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 15, 2:58 pm, "Lee Flight" <l...@xxxxxxxxxxxxxxx> wrote:
Hi
what security events are you refering to, logon events?
If so have enabled logon events audit in the security policy of the
ADAM instance server?
If that's not what you are asking please post an example of the
event that you are seeing when you get positive.
Thanks
Lee Flight
"LM" <merri...@xxxxxxxx> wrote in message
news:1171562913.937503.58860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Trying to run down a problem connecting I poted about earlier, I've
been looking at the Windows Security event log. I'm a little
bewidered.
I have the ADAM service account user granted permission to log
security events, and when I log in as that user using ADSI edit, I
get
Security events describing all that from the ADAM service account.
However, when I run a webapp under Tomcat, and succesfully
authenticate against ADAM, I get NO security ((or ADAM) events from
the ADAM service account. Since authentication is succeeding (here
on
my local machine), I'm pretty confident the Tomcat JNDI realm is
establishing a connection and doing the lookup. Shouldn't I be
getting security events for this?
I'm wondering if there is something I need to configure in ADAM to
get
more detailed logging. Also, wondering if there are objects in the
Configuration partition that I can examine to get useful
information.
Any thoughts?
Many thanks,
lm- Hide quoted text -
- Show quoted text -
Logon events are what I had in mind, yes.
When I log in using ADSI edit, on my local machine here in San Diego,
I get an event like this:
Successful Network Logon:
User Name: ADAM_Manager
Domain: XXXXXXXX
Logon ID: (0x0,0x16BFCCA)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name: XXXXXXXX
Logon GUID: {00000000-0000-0000-0000-000000000000}
And similarly logoff:
User Logoff:
User Name: ADAM_Manager
Domain: XXXXXXXXX
Logon ID: (0x0,0x16BFCCA)
Logon Type: 3
I had to email an Admin person back east to grant perm to the ADAM
service account there, and haven't heard back.
But, as you see, when I log in with ADSI Edit, I get a security event
as one might expect.
However, when the login takes place as an anonymous login from my
Tomcat JNDI realm, to authenticate a user of my web application (which
succeeds, so I have to assume the connection happened) no entry of any
kind from the ADAM service account appears in the Security log, the
ADAM event log, or elsewhere, as far as I can tell.
I was hoping to use the information to determine if ADAM was rejecting
the Tomcat connection, or if the communication never took place at
all, or what have you.
Of course, in the longer term I'm going to have to learn more about
monitoring and maintaining my directory instance in any case.
Thanks for getting back to me.
Lincoln- Hide quoted text -
- Show quoted text -
When you configure the JNDI_Realm for Tomcat to use to AuthN/AuthZ
users against a directory, you provide the information needed to
operate against the directory on a context. As in:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Context>
<Realm
className="org.apache.catalina.realm.JNDIRealm"
debug="99"
connectionURL="ldap://localhost:389/"
userPattern="cn={0},cn=Users,ou=SomeOU,o=SomeO"
roleBase ="cn=Groups,OU=SomeOU,O=SomeO"
roleName="cn"
roleSearch="member={0}">
</Realm>
</Context>
If you are using Declarative Security (which is to say, security on
containers through Tomcat), Tomcat will put up a login dialogue when
an attenmpt is made to access the resource througha browser, to
collect the username and password.
You can provide credentials in the realm for login, or leave them out
and, if anonymous login is enabled in ADAM, it will bind anonymously
and authenticate the logged in user using the password provided and
return the assigned roles in the request object. This anonymous login
is probably (let's say certainly) not best practice, but we are just
getting started and it was quick.
BTW, we also bind to ADAM at Tomcat starup to pull some certs out that
we have in there, and I don't see that in the log either. However, as
I said, it all seems to work, so the connection is happening somehow.
I'm mystified.
Thanks for tour reply. Other thoughts are most welcome.
Regards,
Lincoln
.
- Follow-Ups:
- Re: Security Logging in ADAM
- From: LM
- Re: Security Logging in ADAM
- References:
- Security Logging in ADAM
- From: LM
- Re: Security Logging in ADAM
- From: Lee Flight
- Re: Security Logging in ADAM
- From: LM
- Re: Security Logging in ADAM
- From: Joe Kaplan
- Re: Security Logging in ADAM
- From: LM
- Security Logging in ADAM
- Prev by Date: Re: Finding who did it
- Next by Date: account access monitoring software
- Previous by thread: Re: Security Logging in ADAM
- Next by thread: Re: Security Logging in ADAM
- Index(es):
Relevant Pages
|