Hey, I forgot to mention that I am using phpLDAPadmin as a GUI. 

All is working fine now. The dygroup objectClass wasn't in phpLDAPadmin because I forgot to restart it after changing the ldap schema.

Thanks for your help.

2013/6/3 Michael Ströder <michael@stroeder.com>
Carlos Santos wrote:
> Yes, slapd starts:
>    - Checking config file /etc/openldap2.4/slapd.conf:          [  OK  ]
>    - Stopping slapd:                                            [  OK  ]
>    - Starting slapd (ldap + ldaps):                             [  OK  ]
> When I go to the *Create a child entry *chose the *Default* template the *
> dygroup* doesn't show in the ObjectClasses list.

It seems you're using some sort of a GUI client with unknown behaviour.
Which client are you using?

I'd recommend to query the subschema subentry and examine that in detail.

OpenLDAP Faq-O-Matic - How can I fetch schema information from the server?

Ciao, Michael.

> 2013/5/31 Michael Ströder <michael@stroeder.com>
>> Carlos Santos wrote:
>>> However I have the same problem. It still doesn't show dygroup in the
>>> objectClass list whenever I try to crate a new entry.
>> Does slapd actually start?
>> How do you find out whether the schema element is in the server's subschema
>> subentry?
>> Ciao, Michael.
>>> 2013/5/31 Michael Ströder <michael@stroeder.com>
>>>> => always use debug options when starting slapd after working on custom
>>>> schema
>>>> definitions.
>>>> Ciao, Michael.

Carlos Santos