EN · DE · RU · FR · ES

#500: LdapPosixAccountsConfig.java

projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java Java class, projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java 93 lines · 40 code · 41 comments · 12 blank
Purpose: Source file: projectforge/business/ldap/LdapPosixAccountsConfig.java. LdapPosixAccountsConfig.java is part of the ProjectForge open-source project management application.

Source (first 100 lines)

/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation; version 3 of the License.
//
// This community edition 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 General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////

package org.projectforge.business.ldap;

import org.projectforge.framework.persistence.utils.ReflectionToString;

/**
 * Bean used by ConfigXML (config.xml).
 *
 * @author Kai Reinhard (k.reinhard@micromata.de)
 */
public class LdapPosixAccountsConfig
{
  private String homeDirectoryPrefix = "/home/";

  private int defaultGidNumber = -1;

  private String defaultLoginShell = "/bin/bash";

  /**
   * The home default directory is built out of this prefix followed by the uid (username). Default is "/home/".
   *
   * @return
   */
  public String getHomeDirectoryPrefix()
  {
    return homeDirectoryPrefix;
  }

  public LdapPosixAccountsConfig setHomeDirectoryPrefix(final String homeDirectoryPrefix)
  {
    this.homeDirectoryPrefix = homeDirectoryPrefix;
    return this;
  }

  /**
   * @return The default gid of users.
   */
  public int getDefaultGidNumber()
  {
    return defaultGidNumber;
  }

  public LdapPosixAccountsConfig setDefaultGidNumber(final int defaultGidNumber)
  {
    this.defaultGidNumber = defaultGidNumber;
    return this;
  }

  /**
   * The default login shell is "/bin/bash" at default.
   */
  public String getDefaultLoginShell()
  {
    return defaultLoginShell;
  }

  public LdapPosixAccountsConfig setDefaultLoginShell(final String defaultLoginShell)
  {
    this.defaultLoginShell = defaultLoginShell;
    return this;
  }

  /**
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString()
  {
    return ReflectionToString.toString(this);
  }
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
8f374d6c7 Finalization of UserPagesRest

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
index 0e5bcc491..ea01ee09c 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

63081666f

Source file headers: 2024-> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
index 90d5d8e6a..0e5bcc491 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

b6092df09

Copyright 2023 -> 2024
b6092df0927c4a3b161e888445f31dcab57493f2
diff --git a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
index 705d721e2..90d5d8e6a 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

ab45d51fa

Copyright 2001-2022 -> 2001-2023.
ab45d51fa419ede6174b31d69987f96d4b841ff9
diff --git a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
index 0f03f7fca..705d721e2 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

8f374d6c7

Finalization of UserPagesRest
8f374d6c735b89c732b1aa4f99de26ea75ffd9a5
diff --git a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
index afea13be5..0f03f7fca 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/ldap/LdapPosixAccountsConfig.java
@@ -34,7 +34,7 @@ public class LdapPosixAccountsConfig
 {
   private String homeDirectoryPrefix = "/home/";
 
-  private int defaultGidNumber = 1000;
+  private int defaultGidNumber = -1;
 
   private String defaultLoginShell = "/bin/bash";