Adjust LDAP base DN in tests to dc=example,dc=org

This commit is contained in:
Ralf Haferkamp
2025-01-29 09:20:23 +01:00
parent 64e3d46fb9
commit 1c96633985
3 changed files with 7 additions and 7 deletions

View File

@@ -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",

View File

@@ -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";
}
/**

View File

@@ -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