我想运行一个报告以确保每个用户的密码每隔30天过期一次,但过期间隔似乎没有存储在syslogins中?报告Sybase ASE 12.5中的各个密码到期间隔
0
A
回答
1
你可以用以下PROC报告:
use sybsystemprocs
go
----------------------------------------------------------------------------
print 'sp__helpexpire'
----------------------------------------------------------------------------
if exists (select 1 from sysobjects where type = "P" and name = "sp__helpexpire")
drop proc sp__helpexpire
go
create procedure sp__helpexpire
as
begin
set nocount on
declare @swexpire int
select @swexpire=value from master.dbo.sysconfigures
where name = 'systemwide password expiration'
print "Serverwide password expire: %1!" ,@swexpire
print ""
print "Logins:"
print "=============================================================="
select l.name login , case a.int_value
when null then @swexpire
else a.int_value end "expire in days"
from master.dbo.syslogins l , master.dbo.sysattributes a
where l.suid *= a.object
and a.object_type='PS'
and a.attribute=0
and object_cinfo='login'
print ""
print "Roles:"
print "=============================================================="
select r.name "role name", case a.int_value
when null then @swexpire
else a.int_value end "expire in days"
from master.dbo.syssrvroles r , master.dbo.sysattributes a
where r.srid *= a.object
and a.object_type='PS'
and a.attribute=0
and object_cinfo='role'
end
go
它始终是一个好主意,以检查这些系统程序(存储在sybsystemprocs数据库),它与你正在寻找记录操作的源代码(在此它是sp_addlogin,sp_modifylogin)
0
您可以使用sp_configure来设置所有用户的密码失效日期
sp_configure "systemwide password expiration", 30
go
将会把所有用户的密码在30天后到期。不知道这个值是否可以通过报表读取。默认值为0
0
尝试
高管的sp_displaylogin
以获取单个用户设置的烫发,登录的用户。
相关问题
- 1. 在SYBASE ASE 12.5中获取系统过程的ROWCOUNT
- 2. 在SYBASE ASE 12.5中格式化RAISERROR消息
- 3. 影响最小的“喜欢”上的Sybase ASE 12.5 DB请求
- 4. sybase中的时间戳迁移ASE 12.5到15.5以及Solaris到Linux的服务器迁移
- 5. ASE Sybase BLOB
- 6. LINQToEntities与Sybase ASE 15.5
- 7. 替代sybase中的dense_rank ASE
- 8. Sybase ASE 12.0 CSV表导出
- 9. BCP的Sybase ASE到SQL Server - 自定义字段分隔符
- 10. Sybase ASE 15.7 reorg rebuild
- 11. 重新连接的JDBC DataSource的Sybase ASE 12.5数据库重新启动
- 12. 删除外键在Sybase 12.5
- 13. 如何恢复Sybase AWE的SA密码?
- 14. 收到错误605的Sybase ASE 15.0
- 15. 使用SQLDataReader和Sybase ASE的问题
- 16. Sybase ASE - xmlvalidate与xml架构
- 17. Sybase ASE 15.7 CTE到子查询问题
- 18. Sybase ASE和函数参数?
- 19. 在Sybase ASE中未释放的锁
- 20. 如何模拟Sybase ASE中的GREATEST()?
- 21. 两个日期之间的SSRS报告
- 22. 密码到期时间CS4
- 23. Sybase升级12.5到15.7,两个数据服务器之间有CIS链接
- 24. Sybase IQ和加密密码
- 25. Microsoft Band 2支持的报告间隔
- 26. MYSQL group_concat在Sybase ASE中等效吗?
- 27. BIGINT转换练习Sybase ASE 15 7
- 28. SQL Sybase ASE - 选择最近的日期和最大价格
- 29. 使用SQL报告服务密码保护的PDF/Excel报告
- 30. Git(SourceTree):报告文件更改没有重复日期间隔