-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for NetIQ as a LDAP backend (#61)
- Loading branch information
Max Dor
authored
Mar 2, 2018
1 parent
ea08a80
commit a278580
Showing
15 changed files
with
393 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/io/kamax/mxisd/backend/ldap/netiq/NetIqLdapAuthProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* mxisd - Matrix Identity Server Daemon | ||
* Copyright (C) 2018 Kamax Sàrl | ||
* | ||
* https://www.kamax.io/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.kamax.mxisd.backend.ldap.netiq; | ||
|
||
import io.kamax.mxisd.backend.ldap.LdapAuthProvider; | ||
import io.kamax.mxisd.config.MatrixConfig; | ||
import io.kamax.mxisd.config.ldap.netiq.NetIqLdapConfig; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class NetIqLdapAuthProvider extends LdapAuthProvider { | ||
|
||
public NetIqLdapAuthProvider(NetIqLdapConfig cfg, MatrixConfig mxCfg) { | ||
super(cfg, mxCfg); | ||
} | ||
|
||
// FIXME this is duplicated in the other NetIQ classes, due to the Matrix ID generation code that was not abstracted | ||
@Override | ||
public String buildMatrixIdFromUid(String uid) { | ||
return super.buildMatrixIdFromUid(uid).toLowerCase(); | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/io/kamax/mxisd/backend/ldap/netiq/NetIqLdapDirectoryProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* mxisd - Matrix Identity Server Daemon | ||
* Copyright (C) 2018 Kamax Sàrl | ||
* | ||
* https://www.kamax.io/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.kamax.mxisd.backend.ldap.netiq; | ||
|
||
import io.kamax.mxisd.backend.ldap.LdapDirectoryProvider; | ||
import io.kamax.mxisd.config.MatrixConfig; | ||
import io.kamax.mxisd.config.ldap.netiq.NetIqLdapConfig; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class NetIqLdapDirectoryProvider extends LdapDirectoryProvider { | ||
|
||
public NetIqLdapDirectoryProvider(NetIqLdapConfig cfg, MatrixConfig mxCfg) { | ||
super(cfg, mxCfg); | ||
} | ||
|
||
// FIXME this is duplicated in the other NetIQ classes, due to the Matrix ID generation code that was not abstracted | ||
@Override | ||
public String buildMatrixIdFromUid(String uid) { | ||
return super.buildMatrixIdFromUid(uid).toLowerCase(); | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/io/kamax/mxisd/backend/ldap/netiq/NetIqLdapThreePidProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* mxisd - Matrix Identity Server Daemon | ||
* Copyright (C) 2018 Kamax Sàrl | ||
* | ||
* https://www.kamax.io/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.kamax.mxisd.backend.ldap.netiq; | ||
|
||
import io.kamax.mxisd.backend.ldap.LdapThreePidProvider; | ||
import io.kamax.mxisd.config.MatrixConfig; | ||
import io.kamax.mxisd.config.ldap.netiq.NetIqLdapConfig; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class NetIqLdapThreePidProvider extends LdapThreePidProvider { | ||
|
||
public NetIqLdapThreePidProvider(NetIqLdapConfig cfg, MatrixConfig mxCfg) { | ||
super(cfg, mxCfg); | ||
} | ||
|
||
// FIXME this is duplicated in the other NetIQ classes, due to the Matrix ID generation code that was not abstracted | ||
@Override | ||
public String buildMatrixIdFromUid(String uid) { | ||
return super.buildMatrixIdFromUid(uid).toLowerCase(); | ||
} | ||
|
||
} |
62 changes: 0 additions & 62 deletions
62
src/main/java/io/kamax/mxisd/config/ldap/LdapAttributeConfig.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.