Deal with missing schema

This commit is contained in:
Jamie Cameron
2008-11-01 15:16:04 +00:00
parent 15b0bd8c92
commit 35920b36a4

View File

@@ -334,7 +334,7 @@ else {
# Add to the ldap database
@classes = ( "posixAccount", "shadowAccount" );
if ($schema->objectclass("person") && $config{'person'}) {
if ($schema && $schema->objectclass("person") && $config{'person'}) {
push(@classes, "person");
}