Dear Jiajia!

In the kdcinit log I have this 

2017-12-18 10:10:11 DEBUG{LdapNetworkConnection.java:2288}-Search successful : 
MessageType : SEARCH_RESULT_DONE
Message ID : 2
    Search Result Done
        Ldap Result
            Result code : (SUCCESS) success
            Matched Dn : ''
            Diagnostic message : ''

2017-12-18 10:10:11 DEBUG{LdapNetworkConnection.java:511}-Removing <2, 
org.apache.directory.ldap.client.api.future.SearchFuture>
2017-12-18 10:10:11 DEBUG{SearchCursorImpl.java:210}-Closing SearchCursorImpl 
org.apache.directory.ldap.client.api.SearchCursorImpl@74650e52
2017-12-18 10:10:11 DEBUG{SearchCursorImpl.java:225}-Closing SearchCursorImpl 
org.apache.directory.ldap.client.api.SearchCursorImpl@74650e52
2017-12-18 10:10:11  INFO{LdapIdentityBackend.java:129}-closed connection with 
LDAP.
2017-12-18 10:10:11 DEBUG{AbstractIdentityBackend.java:112}-stop called
2017-12-18 10:10:11 DEBUG{LdapNetworkConnection.java:777}-received a NoD, 
closing everything


at the end of the log. 

Is it a problems with Apache Directory?

Sincerely,
Polina.


18.12.2017, 06:40, "Li, Jiajia" <[email protected]>:
> Hi Maslova,
>
> I've tested this backend, but without exception:
> sh bin/kdcinit.sh conf conf
> The keytab for kadmin principal has been exported to the specified file /home 
> /devel /directory-kerby/kerby-dist/kdc-dist/conf/admin.keytab, please safely 
> keep it, in order to use kadmin tool later
> The keytab for protocol principal has been exported to the specified file 
> /home/ devel/ directory-kerby/kerby-dist/kdc-dist/conf/protocol.keytab, 
> please safely keep it, in order to use remote kadmin tool later
> Finished initializing the KDC backend
>
> My backend.conf:
> kdc_identity_backend = 
> org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend
> host=127.0.0.1
> port=10389
> admin_dn=uid=admin,ou=system
> admin_pw=secret
> base_dn=dc=example,dc=com
>
> Thanks,
> Jiajia
>
> -----Original Message-----
> From: Maslova Polina [mailto:[email protected]]
> Sent: Friday, December 15, 2017 8:13 PM
> To: [email protected]
> Subject: LDAP backend
>
> Hi all!
>
> After the patch https://issues.apache.org/jira/browse/DIRKRB-679 I do not 
> recieve the error Failed to load backend class: 
> org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend
>
> everything goes food with the LDAP backend. Now when I make
>
> sh bin/kdcinit.sh /etc/kerby/kerby-all-1.1.0/kerby-dist/kdc-dist/conf 
> /etc/kerby/kerby-all-1.1.0/kerby-dist/kdc-dist/keytab
>
>  I recieve this:
>
> Exception in thread "main" java.lang.NullPointerException
>         at 
> org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityGetHelper.getKeys(LdapIdentityGetHelper.java:71)
>         at 
> org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend.doGetIdentity(LdapIdentityBackend.java:245)
>         at 
> org.apache.kerby.kerberos.kerb.identity.backend.AbstractIdentityBackend.getIdentity(AbstractIdentityBackend.java:162)
>         at 
> org.apache.kerby.kerberos.kerb.admin.kadmin.local.LocalKadminImpl.createBuiltinPrincipals(LocalKadminImpl.java:136)
>         at 
> org.apache.kerby.kerberos.tool.kdcinit.KdcInitTool.initKdc(KdcInitTool.java:53)
>         at 
> org.apache.kerby.kerberos.tool.kdcinit.KdcInitTool.main(KdcInitTool.java:111)
>
> Why does it occur?
>
> Yours sincerely, Maslova Polina

Reply via email to