File tree 2 files changed +2
-15
lines changed
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 16
16
use OCP \AppFramework \Bootstrap \IRegistrationContext ;
17
17
18
18
class Application extends App implements IBootstrap {
19
- /** @var LDAPUserManager */
20
- protected $ ldapUserManager ;
21
-
22
- /** @var LDAPGroupManager */
23
- protected $ ldapGroupManager ;
24
-
25
19
public const APP_ID = 'ldap_write_support ' ;
26
20
27
21
public function __construct (array $ urlParams = []) {
@@ -34,10 +28,5 @@ public function register(IRegistrationContext $context): void {
34
28
}
35
29
36
30
public function boot (IBootContext $ context ): void {
37
- $ s ->getUserSession (),
38
- $ provider ,
39
- $ c ->query (Configuration::class),
40
- $ s ->getL10N (self ::APP_ID ),
41
- $ s ->getLogger ()
42
31
}
43
32
}
Original file line number Diff line number Diff line change 31
31
use OCA \LdapWriteSupport \Service \Configuration ;
32
32
use OCA \User_LDAP \Group_Proxy ;
33
33
use OCA \User_LDAP \ILDAPGroupPlugin ;
34
- use OCA \User_LDAP \LDAPProvider ;
35
- use OCP \AppFramework \QueryException ;
36
34
use OCP \IGroupManager ;
37
35
use OCP \IL10N ;
38
36
use OCP \ILogger ;
41
39
use OCP \LDAP \ILDAPProvider ;
42
40
43
41
class LDAPGroupManager implements ILDAPGroupPlugin {
42
+ /** @var Configuration */
43
+ protected $ configuration ;
44
44
45
45
/** @var ILDAPProvider */
46
46
private $ ldapProvider ;
@@ -175,7 +175,6 @@ public function addToGroup($uid, $gid) {
175
175
break ;
176
176
case 'gidNumber ' :
177
177
throw new Exception ('Cannot add to group when gidNumber is used as relation ' );
178
- break ;
179
178
}
180
179
181
180
if (!$ ret = ldap_mod_add ($ connection , $ groupDN , $ entry )) {
@@ -215,7 +214,6 @@ public function removeFromGroup($uid, $gid) {
215
214
break ;
216
215
case 'gidNumber ' :
217
216
throw new Exception ('Cannot remove from group when gidNumber is used as relation ' );
218
- break ;
219
217
}
220
218
221
219
if (!$ ret = ldap_mod_del ($ connection , $ groupDN , $ entry )) {
You can’t perform that action at this time.
0 commit comments