Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I've installed slapd (2.4.21) on Ubuntu 10.04, which comes with a lot of .schema files in the /etc/ldap/schemas directory. Some of these .schema files have associated .ldif files, so I'm able to add them with the ldapadd command as described in the official docs, e.g.

sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif

But there are a lot of other .schema files in that directory which do not have associated .ldif files. I've got a project which uses the pwdSafeModify attribute, which is defined in /etc/ldap/schemas/ppolicy.schema which I need. Under older versions of slapd, I'd put the line

include /etc/ldap/schema/ppolicy.schema

in my config file, but I can't figure out how to include that in my coolproject.ldif file. I followed the instructions in the official docs to use slapcap to add dyngroup which contains all of the schemas in that file, but even after using ldapadd as instructed to add it to my LDAP directory structure, but I still get an UNDEFINED_TYPE error for the pwdSafeModify attribute.

So how do I make a .ldif file for the ppolicy.schema file so that I can use the pwdSafeModify attribute in my project?

share|improve this question

closed as too localized by Luis Alvarado Mar 14 '13 at 16:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you still looking for help or did you solve this problem? If you did find an answer please consider adding it here, thanks :) –  coversnail Apr 6 '12 at 18:36
@coversnail: We never figured out how to do this. I'd still love an answer, although we decided to abandon LDAP for the project which caused me to ask this question, which is why I haven't had time to figure this out myself. –  Eli Courtwright Apr 6 '12 at 19:20
You can convert schema to ldif file with use slaptest or this perl scripts. –  us3r May 15 '12 at 11:26

Browse other questions tagged or ask your own question.