2020-05-30 21:43:55 +00:00
|
|
|
import logging
|
2020-06-01 21:43:10 +00:00
|
|
|
from lenticular_cloud.app import init_app
|
|
|
|
from lenticular_cloud.model import User
|
2020-05-30 21:43:55 +00:00
|
|
|
|
|
|
|
name = 'oidc_provider'
|
2020-06-01 21:43:10 +00:00
|
|
|
app = init_app(name)
|
2020-05-30 21:43:55 +00:00
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
|
2020-06-01 21:43:10 +00:00
|
|
|
with app.app_context():
|
|
|
|
for ldap_user in User.query_().all():
|
|
|
|
user = User.query.filter_by(username=str(ldap_user.username)).first()
|
|
|
|
print(user)
|
2020-05-30 21:43:55 +00:00
|
|
|
|