ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
LDAPBindPasswordFieldMigration.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LDAP\Setup
;
22
23
use
ilDatabaseUpdateSteps
;
24
use
ilDBInterface
;
25
26
class
LDAPBindPasswordFieldMigration
implements
ilDatabaseUpdateSteps
27
{
28
private
ilDBInterface
$db
;
29
30
public
function
prepare
(
ilDBInterface
$db): void
31
{
32
$this->db =
$db
;
33
}
34
35
public
function
step_1
(): void
36
{
37
if
($this->db->tableColumnExists(
'ldap_server_settings'
,
'bind_pass'
)) {
38
$this->db->modifyTableColumn(
39
'ldap_server_settings'
,
40
'bind_pass'
,
41
[
42
'type'
=>
'text'
,
43
'length'
=> 100,
44
'notnull'
=>
false
,
45
'default'
=> null
46
]
47
);
48
}
49
if
($this->db->tableColumnExists(
'ldap_server_settings'
,
'role_bind_pass'
)) {
50
$this->db->modifyTableColumn(
51
'ldap_server_settings'
,
52
'role_bind_pass'
,
53
[
54
'type'
=>
'text'
,
55
'length'
=> 100,
56
'notnull'
=>
false
,
57
'default'
=> null
58
]
59
);
60
}
61
}
62
}
ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration
Definition:
LDAPBindPasswordFieldMigration.php:26
ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration\prepare
prepare(ilDBInterface $db)
Definition:
LDAPBindPasswordFieldMigration.php:30
ilDBInterface
ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration\step_1
step_1()
Definition:
LDAPBindPasswordFieldMigration.php:35
ilDatabaseUpdateSteps
ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration\$db
ilDBInterface $db
Definition:
LDAPBindPasswordFieldMigration.php:28
ILIAS\LDAP\Setup
Definition:
LDAPBindPasswordFieldMigration.php:21
Services
LDAP
classes
Setup
LDAPBindPasswordFieldMigration.php
Generated on Tue Sep 2 2025 22:02:32 for ILIAS by
1.8.13 (using
Doxyfile
)