./bin/pi-manage resolver create_internal myfirstresolver
[2016-04-28 11:59:10,585][22742][139981455746880][WARNING][privacyidea.lib.auditmodules.sqlaudit:57] No module named matplotlib
echo "select * from users_myfirstresolver;" | mysql -u privacyID3A -p********** privacyidea
id username email password phone mobile surname givenname description
4 Benutzer email@example.com {SSHA256}H3jlFM6ABr5TfUtuPQ1f8SS0C25ewFiKVSmGp0Iw1QcGykH1FfL4qYiesoUktQ1Q Telefon Mobiltelefon Nachname Vorname Beschreibung
cd /opt/privacyidea/
source bin/activate
./bin/pi-manage resolver create_internal myfirstresolver
[root@server ~]# echo "select * from resolver;" | mysql -u privacyID3A -p privacyideaid name rtype6 myfirstresolver sqlresolver
[root@server ~]# echo "select * from resolverconfig where resolver_id = 6;" | mysql -u privacyID3A -p privacyideaid resolver_id Key Value Type Description38 6 Database privacyidea string39 6 Driver mysql string40 6 Editable 1 int42 6 Limit 500 int37 6 Map {"userid": "id", "username": "username", "email":"email", "password": "password", "phone":"phone", "mobile":"mobile", "surname":"surname", "givenname":"givenname", "description": "description"} string45 6 Password ****************************** password41 6 Server localhost string44 6 Table users_myfirstresolver string43 6 User privacyID3A string
[root@server ~]# cat /etc/privacyidea/pi.cfg# The realm, where users are allowed to login as administratorsSUPERUSER_REALM = ['super', 'administrators']# Your databaseSQLALCHEMY_DATABASE_URI = 'mysql://privacyID3A:****************@localhost/privacyidea'# This is used to encrypt the auth_tokenSECRET_KEY = '*************'# This is used to encrypt the admin passwordsPI_PEPPER = "***************"# This is used to encrypt the token data and token passwordsPI_ENCFILE = '/etc/privacyidea/enckey'# This is used to sign the audit logPI_AUDIT_KEY_PRIVATE = '/etc/privacyidea/private.pem'PI_AUDIT_KEY_PUBLIC = '/etc/privacyidea/public.pem'PI_LOGFILE = '/var/log/privacyidea/privacyidea.log'PI_LOGLEVEL = 50# PI_INIT_CHECK_HOOK = 'your.module.function'
[root@server ~]# echo "explain users_myfirstresolver;" | mysql -u privacyID3A -p privacyideaField Type Null Key Default Extraid int(11) NO PRI NULL auto_incrementusername varchar(40) YES UNI NULLemail varchar(80) YES NULLpassword varchar(255) YES NULLphone varchar(40) YES NULLmobile varchar(40) YES NULLsurname varchar(40) YES NULLgivenname varchar(40) YES NULLdescription varchar(255) YES NULL