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{
...
@Override
public void authenticate(Account acct, String password,
Map<String, Object> context, List<String> args) throws Exception {
System.out.println("***CUSTOM LOGGER AUTHENTICATION***");
}
@Override
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:
soap:Sender
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=127.0.0.1;] soap - GetDomainInfoRequest
2010-04-21 10:05:51,605 INFO [btpool0-7://localhost/service/soap/AuthRequest] [oip=10.53.5.104;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=10.53.5.104;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=127.0.0.1;] soap - GetDomainInfoRequest
Custom authentication is supported in Open source versions ?