[root@kerberos ~]# kadmin -l
kadmin> init EXAMPLE.COM
Realm max ticket life [unlimited]:
Realm max renewable ticket life [unlimited]:
kadmin: create_random_entry([email=krbtgt/EXAMPLE.COM@EXAMPLE.COM]krbtgt/EXAMPLE.COM@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=krbtgt/EXAMPLE.COM@EXAMPLE.COM]krbtgt/EXAMPLE.COM@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=krbtgt/EXAMPLE.COM@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=krbtgt/EXAMPLE.COM@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: create_random_entry([email=kadmin/changepw@EXAMPLE.COM]kadmin/changepw@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=kadmin/changepw@EXAMPLE.COM]kadmin/changepw@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=kadmin/changepw@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=kadmin/changepw@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: create_random_entry([email=kadmin/admin@EXAMPLE.COM]kadmin/admin@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=kadmin/admin@EXAMPLE.COM]kadmin/admin@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=kadmin/admin@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=kadmin/admin@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: create_random_entry([email=changepw/kerberos@EXAMPLE.COM]changepw/kerberos@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=changepw/kerberos@EXAMPLE.COM]changepw/kerberos@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=changepw/kerberos@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=changepw/kerberos@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: create_random_entry([email=kadmin/hprop@EXAMPLE.COM]kadmin/hprop@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=kadmin/hprop@EXAMPLE.COM]kadmin/hprop@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=kadmin/hprop@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=kadmin/hprop@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: create_random_entry([email=WELLKNOWN/ANONYMOUS@EXAMPLE.COM]WELLKNOWN/ANONYMOUS@EXAMPLE.COM[/email]): randkey failed: ldap_add_ext_s: [email=WELLKNOWN/ANONYMOUS@EXAMPLE.COM]WELLKNOWN/ANONYMOUS@EXAMPLE.COM[/email] ([email=DN=krb5PrincipalName=WELLKNOWN/ANONYMOUS@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=WELLKNOWN/ANONYMOUS@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
kadmin: kadm5_create_principal: ldap_add_ext_s: default@EXAMPLE.COM ([email=DN=krb5PrincipalName=default@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com]DN=krb5PrincipalName=default@EXAMPLE.COM,ou=KerberosPrincipal,dc=example,dc=com[/email]) Invalid syntax: objectClass: value #1 invalid per syntax
my slapd.conf:
[root@kerberos ~]# cat /etc/openldap/slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/krb5-kdc.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
# by self write
# by users read
# by anonymous auth
#
acess to *
by sockurl="^ldapi:///$" write
access to attrs=userPassword
by self write
by * auth
access to *
by * read
loglevel 296
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read"
#
# rootdn can always read and write EVERYTHING!
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw "secret"
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/openldap-data
# Indices to maintain
index objectClass eq