Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mayur Patel
LDAP Import Query
October 14, 2012 12:03 AM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

Hello Folks,

I'm importing users from LDAP and I want to import user and user groups which is there inside Active Directory.

i.e. if user has 4 user groups in AD and 2 user groups in Liferay then It should import other 2 groups for that user in liferay and if user is not created in Liferay then it should create user and 4 user groups in Liferay.

Does anyone have any idea for this scenario?

Also, I don't want to apply import search filter when we import user.

Is there anyway to avoid import search filter when we call importLDAPUser method of PortalLDAPImporter.java?

Thanks.
Attachment

Attachments: Image 1.png (3.9k)
Mayur Patel
RE: LDAP Import Query
October 14, 2012 11:57 PM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

Any pointers??
Christoph Rabel
RE: LDAP Import Query
October 15, 2012 2:41 AM
Answer

Christoph Rabel

Rank: Regular Member

Posts: 151

Join Date: September 24, 2009

Recent Posts

Hi!

Haven't done that using AD, only with other LDAP Servers, but import should basically do exactly that. Import users and groups.
Did you try it and it did not work? Any exceptions in the logfile?

If you don't need a search filter, simply enter a filter that matches every user: "(objectclass=person)" should do the trick.

hth
Mayur Patel
RE: LDAP Import Query
October 15, 2012 3:09 AM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

Right, I tried and it's working as expected.

But I want to avoid import search filter using code, Is there anyway to avoid through code ??

Thanks.
Christoph Rabel
RE: LDAP Import Query
October 16, 2012 4:43 AM
Answer

Christoph Rabel

Rank: Regular Member

Posts: 151

Join Date: September 24, 2009

Recent Posts

To be honest, I don't understand what you are trying to accomplish.
If you want to read users from LDAP, you need to do an LDAP search. That's how it works. You can't avoid using an import filter. It is simply not possible.
What problem are you really trying to solve?
Mayur Patel
RE: LDAP Import Query
October 16, 2012 5:39 AM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

I solved the problem as by passing "(objectclass=person)" inside import search filter.

Thanks a lot !!!