mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
Adjust LDAP base DN in tests to dc=example,dc=org
This commit is contained in:
@@ -317,7 +317,7 @@ func TestGetGroupsSearch(t *testing.T) {
|
||||
}
|
||||
}
|
||||
func TestUpdateGroupName(t *testing.T) {
|
||||
groupDn := "cn=TheGroup,ou=groups,dc=owncloud,dc=com"
|
||||
groupDn := "cn=TheGroup,ou=groups,dc=example,dc=org"
|
||||
|
||||
type args struct {
|
||||
groupId string
|
||||
@@ -404,7 +404,7 @@ func TestUpdateGroupName(t *testing.T) {
|
||||
&ldap.SearchResult{
|
||||
Entries: []*ldap.Entry{
|
||||
{
|
||||
DN: "cn=TheGroup,ou=groups,dc=owncloud,dc=com",
|
||||
DN: "cn=TheGroup,ou=groups,dc=example,dc=org",
|
||||
Attributes: []*ldap.EntryAttribute{
|
||||
{
|
||||
Name: "cn",
|
||||
|
||||
@@ -206,7 +206,7 @@ class OcHelper {
|
||||
*/
|
||||
public static function getBaseDN(): string {
|
||||
$dn = \getenv("REVA_LDAP_BASE_DN");
|
||||
return $dn ?: "dc=owncloud,dc=com";
|
||||
return $dn ?: "dc=example,dc=org";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -245,7 +245,7 @@ class OcHelper {
|
||||
*/
|
||||
public static function getBindDN(): string {
|
||||
$dn = \getenv("REVA_LDAP_BIND_DN");
|
||||
return $dn ?: "cn=admin,dc=owncloud,dc=com";
|
||||
return $dn ?: "cn=admin,dc=example,dc=org";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
dn: ou=TestUsers,dc=owncloud,dc=com
|
||||
dn: ou=TestUsers,dc=example,dc=org
|
||||
objectclass: top
|
||||
objectclass: organizationalUnit
|
||||
ou: TestUsers
|
||||
|
||||
dn: ou=TestGroups,dc=owncloud,dc=com
|
||||
dn: ou=TestGroups,dc=example,dc=org
|
||||
objectclass: top
|
||||
objectclass: organizationalUnit
|
||||
ou: TestGroups
|
||||
ou: TestGroups
|
||||
|
||||
Reference in New Issue
Block a user