Hello,
I have been attempting to work with Drools & Spring and have mostly met with frustration.
On going thru many sources, I could know some info on how to integrate both of them. Well, I...
Type: Posts; User: mercury; Keyword(s):
Hello,
I have been attempting to work with Drools & Spring and have mostly met with frustration.
On going thru many sources, I could know some info on how to integrate both of them. Well, I...
Spring 2.x would support JDBC 3.0 features.
Cheers,
Mercury.
Hello Marten,
Firstly, I was stuck up with UnsatisfiedDependencyException. Going thru all the posts, I have set the dependency check to false in my test class constructor. Now the problem is the...
Can you share the code once?
I wanna know how these filters/searchControls can be used in retrieving the user details per given username (sAMAccountName in LDAP terms).
Glad to hear that you could fix your problem.
I have also done the same mistake of going to LOOKUP instead of SEARCH.
Are you using Filters (like WhitespaceWildcardsFilter and EqualsFilter)...
As per your suggestion, I have changed my mind to SEARCH operation, instead of LOOKUP.
Am passing basepath, filter, search, attributesmapper to SEARCH method.
Below is the code ...
...
Sorry, May be am not clear. I was supposed to know how searchcontrols/filters can be implemented in LOOKUP operation. (Just like using using wildcard search ... )
Hello,
Can anyone plz let me know how SearchControls and Filters can be used in ContextMapper?
Thanks in advance,
Mercury.
Thank you once again. Now our LDAP server is up and running. I could connect and retrieve a user details of the given userid.
The problem is I know where exactly the user is located in the tree...
I too came to know that constructing DN will not include the BASE path. Ok. Username given for LDAP Authentication should be an absolute one as you mentioned in your ldap details (as in your post)....
Thank you very much Ulsa/Rasky. Now am clear.
While constructing the DN, you may need to append all the attributes like you have there in the BASE (o=xxx). As you have added "ou" and "uid" in buildDN method, you may also need to add "o" and...
One more question.
I have got with me the URL, BASE, USERNAME and PASSWORD, which I hope are necessary for LDAP Authentication.
In this regard, does the USERNAME should be a full DN? I didnt...
With the same ContextMapper, I tried out as mentioned in the above thread. It didnt authenticate and thrown me the below exceptions ...
org.springframework.ldap.AuthenticationException:...
Thanks for your reply.
The given userid wouldnt be the DN so as you said I need to construct a DN and thereby I can use LOOKUP.
In the documentation, a method is given to construct a full...
OK. Thanks. I shall check with my team and bring it up.
Can you please confirm my approach? Here is what am going with ...
1. Providing LDAP credentials in applicationContext.xml
2....
Are these command line tools work only on Linux or even on Windows also. Am not sure. However I have tried using them on my Windows machine. I couldnt connect.
ldapsearch -h myldapserver -p...
Thanks for your reply.
I tried out with that command in command-prompt. A new window has opened saying
Connecting to <<myLDAPserver>>...
And it was closed without any notice.
Please help...
Thanks rasky/ulsa.
Yes I went wrong in getting the bean. Now I could get the bean as suggested by Ulsa.
But it is now getting CommunicationException, saying cannot connect to host as below ......
Below is the code for findUser method in LDAPManagerImpl class.
public User findUser(String dn) {
return (User) ldapTemplate.lookup(dn, new UserAttributesMapper());
}
And the exception...
Sure. But no much info in the stacktrace also.
java.lang.NullPointerException
at LDAPManagerImpl.findUser(LDAPManagerImpl.java:81)
at LDAPStandalone.main(LDAPStandalone.java:33)
Here,...
Hello,
I am a newbie to Spring-LDAP. My requirement is to connect to LDAP and retrieve the user details with the given userid.
I was trying to develop a standalone application, if all goes...
With the reference PDF, i got the info. Anyways, thanks.
Can anyone help me out or suggest me the approach how to retrieve the user details like firstname, lastname using the user id using...
hello,
in the given sample, there are many imports with net.sf.ldaptemplate.support, my question is whether these can be used for production releases. but coming to spring, all the imports would...
Hi,
Got the solution. By mistake there were two different JAR files of EhCache. Removed the older version of it. Its working fine. However, thanks for your help.
Thanks,
Mercury:)