Class SambaduPasswordManagerModule
java.lang.Object
cz.metacentrum.perun.core.impl.modules.pwdmgr.GenericPasswordManagerModule
cz.metacentrum.perun.core.impl.modules.pwdmgr.EinfraPasswordManagerModule
cz.metacentrum.perun.core.impl.modules.pwdmgr.SambaduPasswordManagerModule
- All Implemented Interfaces:
- PasswordManagerModule
This module allows us to set alternative password for Samba share services. We do not have logins in du-samba
 namespace at all. It uses "einfra" namespace login instead, so this module extends its password manager, disables
 normal password management and overrides alternative password management only. It reuses login format and strength
 checks from einfra module.
- Author:
- Pavel Zlamal invalid input: '<'zlamal@cesnet.cz>
- 
Field SummaryFields inherited from class cz.metacentrum.perun.core.impl.modules.pwdmgr.EinfraPasswordManagerModuleeinfraLoginPattern, einfraPasswordContainsDigit, einfraPasswordContainsLower, einfraPasswordContainsSpec, einfraPasswordContainsUpper, einfraPasswordMinLengthFields inherited from class cz.metacentrum.perun.core.impl.modules.pwdmgr.GenericPasswordManagerModuleactualLoginNamespace, altPasswordManagerProgram, BIN_TRUE, DEFAULT_LOGIN_PATTERN, LOGIN_EXIST, PASSWORD_CHANGE, PASSWORD_CHECK, PASSWORD_CREATE, PASSWORD_DELETE, PASSWORD_RESERVE, PASSWORD_RESERVE_RANDOM, PASSWORD_VALIDATE, passwordManagerProgram, randomPasswordCharacters, randomPasswordLength, WEAKPASSFields inherited from interface cz.metacentrum.perun.core.implApi.modules.pwdmgr.PasswordManagerModuleALT_PASSWORD_PREFIX, BIRTH_DAY_KEY, BIRTH_NUMBER_KEY, FIRST_NAME_KEY, LAST_NAME_KEY, LOGIN_PREFIX, MAIL_KEY, PASSWORD_KEY, TITLE_AFTER_KEY, TITLE_BEFORE_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangePassword(PerunSession sess, String userLogin, String newPassword) voidcheckPassword(PerunSession sess, String userLogin, String password) voidcreateAlternativePassword(PerunSession sess, User user, String passwordId, String password) voiddeleteAlternativePassword(PerunSession sess, User user, String passwordId) voiddeletePassword(PerunSession sess, String userLogin) generateAccount(PerunSession session, Map<String, String> parameters) protected voidhandleAltPwdManagerExit(Process process, User user, String loginNamespace, String passwordId) Handle exit codes of samba-du password manager scriptsvoidreservePassword(PerunSession session, String userLogin, String password) voidreserveRandomPassword(PerunSession session, String userLogin) voidvalidatePassword(PerunSession sess, String userLogin, User user) Methods inherited from class cz.metacentrum.perun.core.impl.modules.pwdmgr.EinfraPasswordManagerModulecheckLoginFormat, checkPasswordStrength, handleSponsorship, isLoginPermittedMethods inherited from class cz.metacentrum.perun.core.impl.modules.pwdmgr.GenericPasswordManagerModulecreateAltPwdManagerProcess, createPwdManagerProcess, generateRandomPassword, getActualLoginNamespace, handleExit, handleGenericErrorCode, loginExist, sendPassword, setActualLoginNamespace
- 
Constructor Details- 
SambaduPasswordManagerModulepublic SambaduPasswordManagerModule()
 
- 
- 
Method Details- 
changePassword- Specified by:
- changePasswordin interface- PasswordManagerModule
- Overrides:
- changePasswordin class- GenericPasswordManagerModule
 
- 
checkPassword- Specified by:
- checkPasswordin interface- PasswordManagerModule
- Overrides:
- checkPasswordin class- GenericPasswordManagerModule
 
- 
createAlternativePasswordpublic void createAlternativePassword(PerunSession sess, User user, String passwordId, String password) throws PasswordStrengthException - Specified by:
- createAlternativePasswordin interface- PasswordManagerModule
- Overrides:
- createAlternativePasswordin class- EinfraPasswordManagerModule
- Throws:
- PasswordStrengthException
 
- 
deleteAlternativePassword- Specified by:
- deleteAlternativePasswordin interface- PasswordManagerModule
- Overrides:
- deleteAlternativePasswordin class- EinfraPasswordManagerModule
 
- 
deletePassword- Specified by:
- deletePasswordin interface- PasswordManagerModule
- Overrides:
- deletePasswordin class- GenericPasswordManagerModule
 
- 
generateAccount- Specified by:
- generateAccountin interface- PasswordManagerModule
- Overrides:
- generateAccountin class- GenericPasswordManagerModule
 
- 
handleAltPwdManagerExitprotected void handleAltPwdManagerExit(Process process, User user, String loginNamespace, String passwordId) Handle exit codes of samba-du password manager scripts- Overrides:
- handleAltPwdManagerExitin class- GenericPasswordManagerModule
- Parameters:
- process- Running password manager script process.
- user- User for which operation was performed.
- loginNamespace- Namespace in which operation was performed.
- passwordId- ID of alt password entry for which it was performed.
 
- 
reservePassword- Specified by:
- reservePasswordin interface- PasswordManagerModule
- Overrides:
- reservePasswordin class- GenericPasswordManagerModule
 
- 
reserveRandomPassword- Specified by:
- reserveRandomPasswordin interface- PasswordManagerModule
- Overrides:
- reserveRandomPasswordin class- EinfraPasswordManagerModule
 
- 
validatePasswordpublic void validatePassword(PerunSession sess, String userLogin, User user) throws InvalidLoginException - Specified by:
- validatePasswordin interface- PasswordManagerModule
- Overrides:
- validatePasswordin class- EinfraPasswordManagerModule
- Throws:
- InvalidLoginException
 
 
-