summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/passwd.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/passwd.py')
-rw-r--r--ipalib/plugins/passwd.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/ipalib/plugins/passwd.py b/ipalib/plugins/passwd.py
index b740c48..901a56f 100644
--- a/ipalib/plugins/passwd.py
+++ b/ipalib/plugins/passwd.py
@@ -16,7 +16,14 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+
+from ipalib import api, errors, util
+from ipalib import Command
+from ipalib import Str, Password
+from ipalib import _
+from ipalib import output
+
+__doc__ = _("""
Set a user's password
If someone other than a user changes that user's password (e.g., Helpdesk
@@ -33,19 +40,10 @@ EXAMPLES:
To change another user's password:
ipa passwd tuser1
-"""
-
-from ipalib import api, errors, util
-from ipalib import Command
-from ipalib import Str, Password
-from ipalib import _
-from ipalib import output
-
+""")
class passwd(Command):
- """
- Set a user's password
- """
+ __doc__ = _("Set a user's password.")
takes_args = (
Str('principal',