Connecting your apache to ebox is very easy and nice. Here is an config that will allow users comming from the ip ranage 192.168.0.0 but demand user and password for everbody else. And it will use ebox ldap for verifying the users.
PREPARE APACHE
First set upp apache to use ldap auth. Install the ldap mod and make shoure that apache is using ldap in the mods-enabled folder.
VHOST CONFIG
<Location /> Order Deny,Allow Deny from all Allow from 192.168.0.0/24 AuthType basic AuthName "Loggin " AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN "cn=admin,dc=ebox" <--- change to match your config AuthLDAPBindPassword "ebox2jadkljalksjdiais0" <-- change to match your config AuthLDAPURL "ldap://10.0.2.30:389/ou=Users,dc=ebox?uid" <-- chnage to match you config AuthLDAPGroupAttributeIsDN on Require valid-user satisfy any </Location>