Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap + kerberos integration #57

Closed
typekpb opened this issue Jun 6, 2016 · 9 comments
Closed

ldap + kerberos integration #57

typekpb opened this issue Jun 6, 2016 · 9 comments
Labels

Comments

@typekpb
Copy link

typekpb commented Jun 6, 2016

I need to achieve ldap + kerberos integration.
Currently I'm following: https://help.ubuntu.com/lts/serverguide/kerberos-ldap.html
however I'm stuck, there seems to be missing file: /usr/share/doc/krb5-kdc-ldap/kerberos.schema.gz.

Running:

apt-get update && apt-get upgrade -yy && apt-get install -yy  krb5-kdc-ldap && ls -l /usr/share/doc/krb5-kdc-ldap/kerberos.schema.gz

Inside the container: osixia/openldap:1.1.2 there is no such file. Any idea why it is so?

however if I ran:

apt-get update && apt-get install -yy apt-file && apt-file update && apt-file list krb5-kdc-ldap

I see:

krb5-kdc-ldap: /etc/insserv/overrides/krb5-kdc
krb5-kdc-ldap: /lib/systemd/system/krb5-admin-server.service.d/slapd-before-kdc.conf
krb5-kdc-ldap: /lib/systemd/system/krb5-kdc.service.d/slapd-before-kdc.conf
krb5-kdc-ldap: /usr/lib/x86_64-linux-gnu/krb5/libkdb_ldap.so.1
krb5-kdc-ldap: /usr/lib/x86_64-linux-gnu/krb5/libkdb_ldap.so.1.0
krb5-kdc-ldap: /usr/lib/x86_64-linux-gnu/krb5/plugins/kdb/kldap.so
krb5-kdc-ldap: /usr/sbin/kdb5_ldap_util
krb5-kdc-ldap: /usr/share/doc/krb5-kdc-ldap/NEWS.Debian.gz
krb5-kdc-ldap: /usr/share/doc/krb5-kdc-ldap/changelog.Debian.gz
krb5-kdc-ldap: /usr/share/doc/krb5-kdc-ldap/copyright
krb5-kdc-ldap: /usr/share/doc/krb5-kdc-ldap/kerberos.ldif.gz
krb5-kdc-ldap: /usr/share/doc/krb5-kdc-ldap/kerberos.schema.gz
krb5-kdc-ldap: /usr/share/man/man8/kdb5_ldap_util.8.gz

moreover, if I ran the command inside the debian:jessie docker container:

   apt-get update && apt-get upgrade -yy && apt-get install -yy  krb5-kdc-ldap && ls -l /usr/share/doc/krb5-kdc-ldap/kerberos.schema.gz

I can see the file present.

Why is it so?

@osixia
Copy link
Collaborator

osixia commented Jun 9, 2016

Hi,
this image had a configuration to prevent documentation and locales to be installed to make it more lightweight as possible.

to install doc remove the file /etc/dpkg/dpkg.cfg.d/01_nodoc

rm -f /etc/dpkg/dpkg.cfg.d/01_nodoc

and for locales /etc/dpkg/dpkg.cfg.d/01_nolocales

rm -f /etc/dpkg/dpkg.cfg.d/01_nolocales

After that install krb5-kdc-ldap and /usr/share/doc/krb5-kdc-ldap/kerberos.schema.gz file should be there :)

I will add a note in the documentation sorry about that.

@osixia osixia added the question label Jun 9, 2016
@typekpb
Copy link
Author

typekpb commented Jun 9, 2016

@osixia thanks! Feel free to close this issue.

@osixia osixia closed this as completed Jul 26, 2016
@SergeyBelyaevSetronica
Copy link

It doesn't help. There is extra file /etc/dpkg/dpkg.cfg.d/docker with similar content. You better add include section to the file. For example echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker

@leolorenzoluis
Copy link

leolorenzoluis commented Dec 1, 2017

@svdba New to this. What do you mean include section to the file? Do I need to delete those extra files under /dpkg?

@osixia Removing the two files you mentioned didn't do anything. It still doesn't put the downloaded files.

@osixia
Copy link
Collaborator

osixia commented Dec 1, 2017

@svdba thanks for the info, can you make a pull request for that ?

@osixia
Copy link
Collaborator

osixia commented Dec 1, 2017

@leolorenzoluis it seems that now debian baseimage also add on configuration file to not install docs. remove also file /etc/dpkg/dpkg.cfg.d/docker

@leolorenzoluis
Copy link

leolorenzoluis commented Dec 1, 2017

@osixia Thanks for the reply. I have removed the file, but I still get the same situation. No files downloaded. Do I need to do something to enable it at the debian base image?

@SergeyBelyaevSetronica
Copy link

@osixia @leolorenzoluis I've added PR #171

@4xpl0r3r
Copy link

I met this issue today, but the solutions above didn't work, I think it is caused by the new version of the ubuntu image.
I solved this problem with the below command

sed -i 's/path-exclude=\/usr\/share\/doc\/\*/#path-exclude=\/usr\/share\/doc\/*/' 
apt reinstall krb5-kdc-ldap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants