Support Questions
Find answers, ask questions, and share your expertise

Kerberos Issue (Failed to create principal- Complex password requirements)

Kerberos Issue (Failed to create principal- Complex password requirements)

New Contributor

Hi ,

We tried to enable Kerberos on our HDF Cluster (Ambari (HDF - and we got the following error:

2019-02-28 03:51:10,771 ERROR [Server Action Executor Worker 1460] CreatePrincipalsServerAction:318 - Failed to create principal, - Can not create principal : org.apache.ambari.server.serveraction.kerberos.KerberosOperationException: Can not create principal : at org.apache.ambari.server.serveraction.kerberos.ADKerberosOperationHandler.createPrincipal( at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.createPrincipal( at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.processIdentity( at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.processIdentities( at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.execute( at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute( at org.apache.ambari.server.serveraction.ServerActionExecutor$ at Caused by: javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 000003E6: SvcErr: DSID-031A12D2, problem 5003 (WILL_NOT_PERFORM), data 0 ^@]; remaining name 'cn=hdf_sys-022819,OU=HDF,OU=Servers,OU=Environments,OU=testing,DC=tst,DC=com' at com.sun.jndi.ldap.LdapCtx.mapErrorCode( at com.sun.jndi.ldap.LdapCtx.processReturnCode( at com.sun.jndi.ldap.LdapCtx.processReturnCode( at com.sun.jndi.ldap.LdapCtx.c_createSubcontext( at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext( at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext( at at org.apache.ambari.server.serveraction.kerberos.ADKerberosOperationHandler.createPrincipal(

1. We have a complex password policy with specific elements on our AD .(E.G - Password cant start with numbers, cant end/start with special character, should start with capital letterer, etc...)

2. AD organization unit for principals has been created as well user with admin privileges for this OU (I have manage to create user manually with OpenLDAP)

3. I tried to customized the password properties on the Kerberos wizard - Advanced kerberos-env (Password Length, Minimum Lowercase letters, Digits etc...)

The only solution we currently have is to create the principals and keytabs manually .(We prefer to avoid this option for now)

Do you have any idea or workaround for this issue?