Hi, I got it working... I went to lunch and the brain had a break, then it all came together. Script is a bit rough, but it does what I want which is just a test at this point. The reason it didn't seem to be working was because the script wasn't preceded by the below 2 lines, which meant the user never got to the login screen. $user = ''; $pass = ''; $auth = auth.query( "AD", $user, $pass ); if( $auth['Error'] ) { log.error( "Error with authenticator 'ldap': " . $auth['Error'] ); connection.discard(); } else if( !$auth['OK'] ) { # Unauthorised log.error( "403 Permission Denied" . $auth['Error'] ); } # Allow through members of the 'SITE' group using # the 'group' attribute returned by the authenticator if( $auth['group'] != "SITE_A" ) { pool.use( "POOL A" ); } if( $auth['group'] != "SITE_B" ) { pool.use( "POOL B" ); }
... View more