Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
SamuelRed
New Contributor

Maximum User Query Result with LDAP

Hi All,

 

I have a case with Fortigate/FortiOS ldap authentication with Zimbra as a directory services.

No issue with the connection, but found issue with query result. When I wont to add user with remote-auth method (remote ldap-user), fortigate just query for 1000 user only, whereas the number of users is 5000.

 

I try to searching one valid uid (user), but not exist in user list. (attached)

 

If the maximum ldap query limited at 1000, can I get the document who stated that? or any idea/trick to solving the issue?

 

thanks in advanced

Samuel R.

146
4 REPLIES 4
awasfi_FTNT
Staff
Staff

Hello,

 

It's by design to limit the LDAP server and FGT load. Also searching through more than 1000 records will be difficult.

However all users should be retrieved by the LDAP query.

What you can do is using the custom TAB to filter the records that you want to add.

 

Regards,

awasfi_FTNT
Staff
Staff

Also Windows Server 2003 LDAP for example has "MaxPageSize = 1000" be default.

I'm not sure if you changed this value to more than 1000, it will shows more records on the FortiGate.

 

xsilver_FTNT
Staff
Staff

Hello,

 

FortiOS does LDAP searchRequest with paged controll set. Bu default and as industry usual it's set to 500 records. So LDAP server is asked to provide all the records (FortiOS do not request max size) but by 500 records chunks.

I'd suggest to use packet capture (GUI) or 'diag sniff packet' (CLI) FortiOS tools to see what happen in LDAP traffic.

This should help you determine on which side issue happen.

As it was mentioned it might be limitation of LDAP server.

It might be that LDAP server responses too slow and connection times out before all records are collected.

 

You can also open a ticket on support site or through the Fortinet Partner close to you.

 

Kind regards,

Tomas

Tomas Stribrny - NASDAQ:FTNT - Fortinet Inc. - TAC Staff Engineer
AAA, MFA, VoIP and other Fortinet stuff

SamuelRed

Hi All,

 

sorry I just response this thread,

and the issue is solve by manually adding/import the remote user in LDAP with CLI bulking script. I imported based on uid in LDAP.

Luckily my customer have a list of uid user in csv file, so make me more easily :)

 

thanks

Samuel

154
Labels
Top Kudoed Authors