Results 1 to 4 of 4

Thread: Custom Authentication

Threaded View

  1. #1
    Join Date
    Mar 2009
    Rep Power

    Default Custom Authentication

    A question , I'm planning to implement a Cuatom Authentication and my question is : Is this feature enable in Open Source Edition?

    We are using the ZCS version Open Source.
    Acording to
    Account Authentication
    Custom Authentication - zimbraCustomAuth

    1) We Implement a custom handler (java class), MANIFEST file and install the jar file in lib/ext directory.

    Java class looks like:

    public class ZimbraDatabaseAuthentication extends ZimbraCustomAuth implements ZimbraExtension{
    public void authenticate(Account acct, String password,
    Map<String, Object> context, List<String> args) throws Exception {
    System.out.println("***CUSTOM LOGGER AUTHENTICATION***");

    public void init() {
    ZimbraCustomAuth.register("sample", new ZimbraDatabaseAuthentication());


    And MANIFEST file
    Zimbra-Extension-Class: Zimbra-Extension-Class: test.ZimbraDatabaseAuthentication

    2) We run the command
    zmprov modifydomain zclarin.lab zimbraAuthMech custom:sample

    3) Restart the zimbra server

    Now, in administration console appears new custom:sample but when run test button shows an error message in console:
    invalid request: auth mech must be: ldap or ad

    When access to zimbra show error :
    2010-04-21 10:05:51,454 INFO [btpool0-9://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ip=;] soap - GetDomainInfoRequest
    2010-04-21 10:05:51,605 INFO [btpool0-7://localhost/service/soap/AuthRequest] [oip=;ua=zclient/6.0.5_GA_2213.RHEL5_64;] soap - AuthRequest
    2010-04-21 10:05:51,666 INFO [btpool0-7://localhost/service/soap/AuthRequest] [name=test@zclarin.lab;oip=;ua=zclient/6.0.5_GA_2213.RHEL5_64;] SoapEngine - handler exception: authentication failed for test@zclarin.lab, handler sample for custom auth for domain zclarin.lab not found
    2010-04-21 10:05:51,684 INFO [btpool0-7://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ip=;] soap - GetDomainInfoRequest

    Custom authentication is supported in Open source versions ?
    Last edited by muchimura; 04-21-2010 at 08:41 AM.

Similar Threads

  1. Chaining authentication modules
    By glalejos in forum Developers
    Replies: 1
    Last Post: 09-11-2009, 04:09 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Custom Authentication
    By jasper in forum Administrators
    Replies: 5
    Last Post: 04-10-2008, 04:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts