Bypass auth_ldap when accessed from a specific subnet

Hi,

I was wondering if it was possible to configure nginx with auth-ldap so that when I access the particular reverse proxy using it, it will only request the authentication if this is accessed from a non-local network. I found out how to filter the network (allow and deny in the nginx config), but I can’t seem to find out how to apply the filter to the auth. Has anyone got an example?