Skip to content

Restrict ActiveSync usage by domain or user/email #106

Answered by mediabox-cl
mediabox-cl asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you @matidau for your response. The only problem is I don't want to hack the core code.

Another idea but I don't know if this works.

Looking into the code I found the "SYNC_FOLDER_TYPE_DUMMY" constant. I can make a new backend and extend the "Backend" class, for example:

class BackendISPConfig extends Backend
{
    // .....
    public function Logon($username, $domain, $password)
    {
        // Make an ISPConfig API call and chek if the user/domain can login
    }
    //....
}

Then, in the combined Backend I can assign this backend (BackendISPConfig) to the "SYNC_FOLDER_TYPE_DUMMY", for example:

    public static function GetBackendCombinedConfig() {

        return array(
      …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@matidau
Comment options

Answer selected by matidau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants