File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 1616use OCP \AppFramework \Bootstrap \IRegistrationContext ;
1717
1818class Application extends App implements IBootstrap {
19- /** @var LDAPUserManager */
20- protected $ ldapUserManager ;
21-
22- /** @var LDAPGroupManager */
23- protected $ ldapGroupManager ;
24-
2519 public const APP_ID = 'ldap_write_support ' ;
2620
2721 public function __construct (array $ urlParams = []) {
@@ -34,10 +28,5 @@ public function register(IRegistrationContext $context): void {
3428 }
3529
3630 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 ()
4231 }
4332}
Original file line number Diff line number Diff line change 3131use OCA \LdapWriteSupport \Service \Configuration ;
3232use OCA \User_LDAP \Group_Proxy ;
3333use OCA \User_LDAP \ILDAPGroupPlugin ;
34- use OCA \User_LDAP \LDAPProvider ;
35- use OCP \AppFramework \QueryException ;
3634use OCP \IGroupManager ;
3735use OCP \IL10N ;
3836use OCP \ILogger ;
4139use OCP \LDAP \ILDAPProvider ;
4240
4341class LDAPGroupManager implements ILDAPGroupPlugin {
42+ /** @var Configuration */
43+ protected $ configuration ;
4444
4545 /** @var ILDAPProvider */
4646 private $ ldapProvider ;
@@ -175,7 +175,6 @@ public function addToGroup($uid, $gid) {
175175 break ;
176176 case 'gidNumber ' :
177177 throw new Exception ('Cannot add to group when gidNumber is used as relation ' );
178- break ;
179178 }
180179
181180 if (!$ ret = ldap_mod_add ($ connection , $ groupDN , $ entry )) {
@@ -215,7 +214,6 @@ public function removeFromGroup($uid, $gid) {
215214 break ;
216215 case 'gidNumber ' :
217216 throw new Exception ('Cannot remove from group when gidNumber is used as relation ' );
218- break ;
219217 }
220218
221219 if (!$ ret = ldap_mod_del ($ connection , $ groupDN , $ entry )) {
You can’t perform that action at this time.
0 commit comments