Changeset 6685
- Timestamp:
- Jan 20, 2015, 9:18:41 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/developer/extensions.xml
r6628 r6685 2391 2391 2392 2392 <para> 2393 All login requests (except ROOT)are always sent to registered authentication2393 All login requests are always sent to registered authentication 2394 2394 managers first. Internal authentication is only used if no authentication 2395 2395 manager could validate the user. Even with external authentication it is possible to … … 2410 2410 2411 2411 <itemizedlist> 2412 <listitem>2413 <para>2414 The ROOT user is logging on. Internal authentication is always2415 used for the root user and no authentication managers are used.2416 </para>2417 </listitem>2418 2419 2412 <listitem> 2420 2413 <para> -
trunk/src/core/net/sf/basedb/core/SessionControl.java
r6465 r6685 381 381 tx = HibernateUtil.newTransaction(session); 382 382 383 // Try external authentication at first, except... 384 // ...root user should always use internal verification 385 UserData root = HibernateUtil.loadData(session, UserData.class, SystemItems.getId(User.ROOT)); 386 assert root != null : "root == null"; 387 388 AuthenticatedUser authUser = null; 389 if (!loginRequest.getLogin().equals(root.getLogin())) 390 { 391 authUser = verifyUserExternal(session, loginRequest); 392 } 393 383 AuthenticatedUser authUser = verifyUserExternal(session, loginRequest); 394 384 if (authUser == null) 395 385 {
Note: See TracChangeset
for help on using the changeset viewer.