hi Vaggelis K. I cannot configure cas server to connect to mysql.help please

Vào 02:25:41 UTC+7 Thứ Ba, ngày 27 tháng 2 năm 2018, Vaggelis K đã viết:
>
> Xin chào Misagh,
>
> Chúng tôi đang cố gắng cấu hình máy chủ cas apereo với cơ sở dữ liệu 
> mysql. Chúng tôi đã quản lý thành công thiết lập kết nối và tìm nạp tất 
> cả các thuộc tính. 
> Trong trường hợp của chúng tôi, chúng tôi muốn người dùng đăng nhập qua 
> email. Vì vậy, chúng tôi đã cấu hình chức năng xác thực chính như hình 
> dưới đây.
>
> cas.authn.jdbc.query [0] .sql = SE LECT * TỪ người dùng WHERE email =? 
> cas.authn.jdbc.query [0]. healthQuery = 
> cas.authn.jdbc.query [0]. isolateInternalQueries = false 
> cas.authn.jdbc.query [0] .url = jd bc: mysql: // example / cas_server_ db 
> cas.authn.jdbc.query [0]. dialect = org.hibernate.dialect. MySQLDialect 
> cas.authn.jdbc.query [0] .user = exampleUser cas.authn.jdbc.query [0]. 
> password = examplePass cas.authn.jdbc.query [0]. driverClass =com.mysql.jdbc. 
> Người lái xe
>
>
> cas.authn.jdbc.query [0]. fieldPassword = password 
> cas.authn.jdbc.query [0]. passwordEncoder.type = org. defrox.bcrypt. 
> BCryptPasswordEncoder 
> cas.authn.jdbc.query [0]. passwordEncoder. characterEncoding = UTF-8
>
> Ngoài ra, chúng tôi có cái này và hoạt động tốt.
>
> cas.authn.attributeRepository. jdbc [0] .singleRow = true 
> cas.authn.attributeRepository. jdbc [0] .url = jdbc: mysql: // example / 
> cas_server_db 
> cas.authn.attributeRepository. jdbc [0] .sql = SELECT * FROM thuộc tính WHERE 
> {0} cas.authn.attributeRepository. jdbc [0] .requireAllAttributes = t rue 
> cas.authn.attributeRepository. jdbc [0] .username = email 
> cas.authn.attributeRepository. jdbc [0] .driverClass = com.mysql. jdbc.Driver 
> cas.authn.attributeRepository. jdbc [0] .user = exampleUser
>
>
>
>
> cas.authn.attributeRepository. jdbc [0] .password = examplePass 
> cas.authn.attributeRepository. jdbc [0] .dialect = org.hibernate. phương 
> ngữ.MySQLDialect
>
> Lược đồ db của chúng tôi là:
>
> [image: Hình ảnh nội tuyến 1]
>
>
> Vấn đề của chúng tôi là chúng tôi muốn thực hiện truy vấn với users.id = 
> properties.user_id <http://users.id> .
>
> Điều này có khả thi không và chúng ta phải thay đổi cấu hình thuộc tính 
> như thế nào để đạt được điều này? 
>
> Lưu ý rằng chúng tôi đã hỏi về trò chuyện gitter và chúng tôi đã thông báo 
> rằng điều này chỉ có thể thực hiện được bằng cách ghi đè chức năng tổng hợp 
> / xếp tầng của thư mục người mặc định. 
> Nếu đây là cách duy nhất, làm thế nào chúng ta có thể đạt được điều đó khi 
> chúng ta sử dụng tổng thể mẫu lớp phủ cas và mẫu mặc định ở đâu?
>
> Cảm ơn trước.
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f7d9432f-1a0e-4dbc-aa60-9a31ea5fcb6do%40apereo.org.

Reply via email to