-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_add_missing_attributes.php
52 lines (47 loc) · 1.66 KB
/
user_add_missing_attributes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
// Fix a 'object class violation' by adding missing MUST attributes
// $Id: user_add_missing_attributes.php,v 2.9 2006-12-16 12:02:09 turbo Exp $
//
// This file is INCLUDED from pql.inc:pql_replace_userattribute()
// and should NOT be called directly!
//
require("./include/pql_session.inc");
require($_SESSION["path"]."/include/pql_config.inc");
?>
<span class="title1"><?php echo $LANG->_('Object class violation')?></span>
<br><br>
Sorry, but the request you tried to perform (modify attribute <b><?php echo $MISSING['attrib']?></b>)
did not work - the object you tried to modify is missing an object class.
<br><br>
To be able to fullfill the query, you will have to add the objectclass
<b><?php echo $MISSING['objectclass']?></b> to the object.
<br>
This objectclass however require the following attributes (which isn't in the object either):
<br><br>
<center>
<?php
for($i=0; $i < count($MISSING['attributes']); $i++) {
echo "<b>".$MISSING['attributes'][$i]."</b>";
if(!$MISSING['attributes'][$i+2] and $MISSING['attributes'][$i+1])
echo " and ";
elseif($MISSING['attributes'][$i+1])
echo ", ";
}
?>
</center>
<br>
There is (currently) no way that phpQLAdmin will be able to let you input these attributes
and try again. The only way I can think of to get around this is to disable schema checking
in the LDAP server, but I do not recomend this.
If you are the administrator of this phpQLAdmin installation, and you just happen to know
a little PHP, then I'd appreciate some help with this :)
The offending file is 'user_add_missing_attributes.php'...
<?php
pql_flush();
/*
* Local variables:
* mode: php
* tab-width: 4
* End:
*/
?>