##// END OF EJS Templates
docs: added info about changing authentication type for users
marcink -
r1393:f73f8d06 default
parent child Browse files
Show More
@@ -12,6 +12,7 b' it somehow becomes unavailable you can u'
12 Logging into the |RCE| database with ``iShell`` should only be done by an
12 Logging into the |RCE| database with ``iShell`` should only be done by an
13 experienced and knowledgeable database administrator.
13 experienced and knowledgeable database administrator.
14
14
15
15 Reset Admin Account Privileges
16 Reset Admin Account Privileges
16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18
@@ -32,6 +33,7 b' account permissions.'
32 In [3]: Session().add(adminuser);Session().commit()
33 In [3]: Session().add(adminuser);Session().commit()
33 In [4]: exit()
34 In [4]: exit()
34
35
36
35 Set to read global ``.hgrc`` file
37 Set to read global ``.hgrc`` file
36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
39
@@ -57,6 +59,7 b' following example to make changes to thi'
57 In [5]: Session().add(new_option);Session().commit()
59 In [5]: Session().add(new_option);Session().commit()
58 In [6]: exit()
60 In [6]: exit()
59
61
62
60 Manually Reset Password
63 Manually Reset Password
61 ^^^^^^^^^^^^^^^^^^^^^^^
64 ^^^^^^^^^^^^^^^^^^^^^^^
62
65
@@ -88,7 +91,6 b' Use the following code example to carry '
88 In [8]: exit()
91 In [8]: exit()
89
92
90
93
91
92 Change user details
94 Change user details
93 ^^^^^^^^^^^^^^^^^^^
95 ^^^^^^^^^^^^^^^^^^^
94
96
@@ -113,3 +115,37 b' Use the following code example to carry '
113 In [3]: my_user.username = 'SomeUser'
115 In [3]: my_user.username = 'SomeUser'
114 In [4]: Session().add(my_user);Session().commit()
116 In [4]: Session().add(my_user);Session().commit()
115 In [5]: exit()
117 In [5]: exit()
118
119
120 Change user login type
121 ^^^^^^^^^^^^^^^^^^^^^^
122
123 Sometimes it's required to change account type from RhodeCode to LDAP or
124 other external authentication type.
125 If you need to manually change the method of login, use the following steps.
126
127 1. Navigate to your |RCE| install location.
128 2. Run the interactive ``ishell`` prompt.
129 3. Set a new arguments for users.
130
131 Use the following code example to carry out these steps.
132 Available values for new_extern_type can be found when browsing available
133 authentication types in RhodeCode admin interface for authentication.
134 Use the text which is shown after '#' sign, eg.
135 ` LDAP (egg:rhodecode-enterprise-ce#ldap)` it's type is 'ldap'
136
137 .. code-block:: bash
138
139 # starts the ishell interactive prompt
140 $ rccontrol ishell enterprise-1
141
142 .. code-block:: mysql
143
144 # Use this example to change users from authentication
145 # using rhodecode internal to ldap
146 In [1]: new_extern_type = 'ldap'
147 In [2]: my_user = User.get_by_username('some_username')
148 In [3]: my_user.extern_type = new_extern_type
149 In [4]: my_user.extern_name = new_extern_type
150 In [5]: Session().add(my_user);Session().commit()
151 In [6]: exit()
General Comments 0
You need to be logged in to leave comments. Login now