Class SambaHelper

java.lang.Object
org.codelibs.fess.helper.SambaHelper

public class SambaHelper extends Object
Helper class for Samba-related operations.
  • Field Details

    • SID_TYPE_ALIAS

      public static final int SID_TYPE_ALIAS
      SID type for an alias.
      See Also:
    • SID_TYPE_DELETED

      public static final int SID_TYPE_DELETED
      SID type for a deleted account.
      See Also:
    • SID_TYPE_DOM_GRP

      public static final int SID_TYPE_DOM_GRP
      SID type for a domain group.
      See Also:
    • SID_TYPE_DOMAIN

      public static final int SID_TYPE_DOMAIN
      SID type for a domain.
      See Also:
    • SID_TYPE_INVALID

      public static final int SID_TYPE_INVALID
      SID type for an invalid SID.
      See Also:
    • SID_TYPE_UNKNOWN

      public static final int SID_TYPE_UNKNOWN
      SID type for an unknown SID.
      See Also:
    • SID_TYPE_USE_NONE

      public static final int SID_TYPE_USE_NONE
      SID type for a non-use SID.
      See Also:
    • SID_TYPE_USER

      public static final int SID_TYPE_USER
      SID type for a user.
      See Also:
    • SID_TYPE_WKN_GRP

      public static final int SID_TYPE_WKN_GRP
      SID type for a well-known group.
      See Also:
    • fessConfig

      protected org.codelibs.fess.mylasta.direction.FessConfig fessConfig
      The Fess configuration.
  • Constructor Details

    • SambaHelper

      public SambaHelper()
      Constructor.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the SambaHelper.
    • getAccountId

      public String getAccountId(org.codelibs.jcifs.smb.SID sid)
      Gets the account ID from a SID.
      Parameters:
      sid - The SID.
      Returns:
      The account ID.
    • getAccountId

      public String getAccountId(org.codelibs.jcifs.smb1.SID sid)
      Gets the account ID from a SID.
      Parameters:
      sid - The SID.
      Returns:
      The account ID.
    • createSearchRole

      protected String createSearchRole(int type, String name)
      Creates a search role.
      Parameters:
      type - The SID type.
      name - The account name.
      Returns:
      The search role.