我已经制作了烧瓶网络应用程序,意在我的组织内使用.
我的问题是目前通过从用户请求用户名和密码登录,然后由LDAP服务器进行身份验证.
我希望能够立即自动登录 用户,因为这是其他公司内部网站的工作方式(这些其他网站是用C#和php制作的)
我的主要问题是:
Requests-ntlm曾经被建议但没有文档.
我试着看几个堆栈溢出问题,但它们没有解决我的问题,例如链接
我已经使用flask-SQLAlchemy 映射了数据库中名为Proposal 的表之一,但在从应用程序插入数据库时遇到了问题。这是错误:
sqlalchemy.exc.ProgrammingError: (pyodbc.ProgrammingError) ('42000', "[42000]
[Microsoft][ODBC SQL Server Driver][SQL Server]The target table 'Proposal' of
the DML statement cannot have any enabled triggers if the statement contain an
OUTPUT clause without INTO clause. (334) (SQLExecDirectW); [42000] [Microsoft]
[ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared
Run Code Online (Sandbox Code Playgroud)
数据库是MSSQL类型。
SQLAlchemy生成的sql语句是
SQL: 'INSERT INTO [Proposal] (proposal_fee, contract1, contract,
proposal_disb, source, sid, value_per_hr, team_hrs, reason_for_loss,
incharge, [Country_id], [manner], [Manager_id], preparer_id,
task_id, date_received, proposal_deadline, industry_id,
proposal_currency_id, contract_currency_id, service_description_id,
business_unit_id, status_id, associated_cost) OUTPUT inserted.[ID] VALUE …Run Code Online (Sandbox Code Playgroud)