ucert 0.2.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +134 -0
- data/LICENSE.txt +22 -0
- data/README.rdoc +61 -0
- data/Rakefile +8 -0
- data/TODO +5 -0
- data/bin/ad_dump +74 -0
- data/bin/ad_update +48 -0
- data/bin/adgrep +149 -0
- data/bin/adp_dump +70 -0
- data/bin/aix_dump +69 -0
- data/bin/audiolog_dump +69 -0
- data/bin/bloomberg_dump +69 -0
- data/bin/check21_dump +69 -0
- data/bin/citidirect_be_dump +69 -0
- data/bin/citidirect_sec_dump +69 -0
- data/bin/citrixsf_dump +70 -0
- data/bin/clear_par_dump +70 -0
- data/bin/cmbrun_ny_dump +76 -0
- data/bin/cvm_dump +70 -0
- data/bin/db_direct_dump +69 -0
- data/bin/egifts_dump +68 -0
- data/bin/equinix_dump +69 -0
- data/bin/frb_dump +69 -0
- data/bin/go_contact_dump +16 -0
- data/bin/jpm_dump +69 -0
- data/bin/madison535_dump +70 -0
- data/bin/mantis_dump +79 -0
- data/bin/prime_dump +79 -0
- data/bin/sage100_dump +69 -0
- data/bin/sharefile_dump +69 -0
- data/bin/som_dump +74 -0
- data/bin/stb_dump +69 -0
- data/bin/swift_dump +79 -0
- data/bin/swift_online_dump +69 -0
- data/bin/t24_dump +79 -0
- data/bin/vpn_dump +69 -0
- data/bin/wms_dump +79 -0
- data/bin/yst_dump +79 -0
- data/data/ad/ad_delta.txt +94 -0
- data/data/ad/hosts +421 -0
- data/data/ad/hosts.old +597 -0
- data/data/ad/hosts_old +597 -0
- data/data/ad/ldap_computer.txt +19028 -0
- data/data/ad/ldap_person.txt +41241 -0
- data/data/adp/Active Employee Report.xlsx +0 -0
- data/data/adp/adp_user_map.txt +141 -0
- data/data/aix/EGIFTS1.txt +239 -0
- data/data/aix/NYSWIFT1.txt +222 -0
- data/data/aix/T24_APP1.txt +300 -0
- data/data/aix/T24_DBP.txt +252 -0
- data/data/aix/aix_user_map.txt +46 -0
- data/data/alliance_swift/Swift_Operator_Details.xlsx +0 -0
- data/data/alliance_swift/Swift_Operator_Profiles_Details.xlsx +0 -0
- data/data/alliance_swift/swift_operator_map.txt +22 -0
- data/data/audiolog/Capture_audiolog.PNG +0 -0
- data/data/bloomberg/AccountData.csv +2 -0
- data/data/bloomberg/Capture_SID_download.PNG +0 -0
- data/data/bloomberg/current_subscriptions.csv +11 -0
- data/data/check21/Capture_check21_users.PNG +0 -0
- data/data/citidirect_be/Capture.PNG +0 -0
- data/data/citidirect_be/Capture_new.PNG +0 -0
- data/data/citidirect_be/Capture_new_new.PNG +0 -0
- data/data/citidirect_be/UserProfileEntitlementReport.pdf +0 -0
- data/data/citidirect_be/UserProfileEntitlementsReport.old.xlsx +0 -0
- data/data/citidirect_be/UserProfileEntitlementsReport.xlsx +0 -0
- data/data/citidirect_be/be_user_map.txt +11 -0
- data/data/citidirect_securities/Capture.PNG +0 -0
- data/data/citidirect_securities/User_Entitlements_Report___CLNT.dat +19 -0
- data/data/citidirect_securities/User_Entitlements_Report___CLNT.xml +75 -0
- data/data/citidirect_securities/citidirect_securities_user_map.txt +10 -0
- data/data/citrix_sharefile/ShareFile_Access_Report.xlsx +0 -0
- data/data/citrix_sharefile/sharefile_user_map.txt +33 -0
- data/data/clear_par/ClearPar User Report.xlsx +0 -0
- data/data/clear_par/clear_par_user_map.txt +25 -0
- data/data/cmbrun_ny/CMBNY_Position_Rpt.xlsx +0 -0
- data/data/cmbrun_ny/CMBRUN_USER_RPT.xlsx +0 -0
- data/data/cmbrun_ny/Capture_cmbrun.PNG +0 -0
- data/data/cmbrun_ny/Capture_cmbrun_position.PNG +0 -0
- data/data/cmbrun_ny/crny_access_user_map.txt +55 -0
- data/data/cvm/cvm_user_func.xlsx +0 -0
- data/data/cvm/cvm_user_list.xlsx +0 -0
- data/data/cvm/cvm_user_map.txt +56 -0
- data/data/cvm/cvm_user_role.xlsx +0 -0
- data/data/db_direct/Capture_main.PNG +0 -0
- data/data/db_direct/Capture_rpt.PNG +0 -0
- data/data/db_direct/accountpermission.xlsx +0 -0
- data/data/db_direct/db_direct_user_map.txt +8 -0
- data/data/db_direct/di_direct_user_map.txt +0 -0
- data/data/db_direct/userfulldetail_2016010813232300644912.pdf +0 -0
- data/data/equinix/Secured Access List_CHINA MERCHANTS BANK.xlsx +0 -0
- data/data/equinix/equinix_user_map.txt +29 -0
- data/data/fis_egifts/CHINA_MERCHANTS_BANK_-_USER_ACCOUNT_FUNCTION_REPORT.xlsx +0 -0
- data/data/fis_egifts/egifts_user_map.txt +113 -0
- data/data/fis_prime/Prime_Operator_Rights_Report.xml +41958 -0
- data/data/fis_prime/Prime_Operator_Status_Report.xml +1827 -0
- data/data/fis_prime/Prime_Operators_and_Roles_Report.xml +1505 -0
- data/data/fis_prime/Prime_Rights_by_Role_Report.xml +22726 -0
- data/data/fis_prime/prime_user_map.txt +77 -0
- data/data/frb/FRB_Subscriber_Roles_Report.xlsx +0 -0
- data/data/frb/frb_user_map.txt +22 -0
- data/data/go_contact/go_contact.xlsx +0 -0
- data/data/go_contact/go_user_map.txt +134 -0
- data/data/go_contact/title_level_map.txt +141 -0
- data/data/jpm_access/Capture.PNG +0 -0
- data/data/jpm_access/jpm_access_user_map.txt +13 -0
- data/data/jpm_access/jpm_user_entitlements_details.txt +194 -0
- data/data/jpm_access/jpm_user_groupentitlements_details.txt +2 -0
- data/data/madison535/535madison_bldg_pass.xlsx +0 -0
- data/data/madison535/535madison_bldg_pass_2.xlsx +0 -0
- data/data/madison535/madison535_user_map.txt +191 -0
- data/data/mantis/Mantis_AccessLevels.xlsx +0 -0
- data/data/mantis/Mantis_ActiveUsers_Rpt.xlsx +0 -0
- data/data/mantis/mantis_access_user_map.txt +128 -0
- data/data/sage100/Capture_Sage100_Rpt.PNG +0 -0
- data/data/sage100/Capture_Sage100_Rpt_2.PNG +0 -0
- data/data/sage100/SY_UserReport_RolePreferencesDetails.xlsx +0 -0
- data/data/sage100/SY_UserReport_RoleTaskPermissionsDetails.xlsx +0 -0
- data/data/sage100/sy_user_map.txt +14 -0
- data/data/som/som_user_map.txt +40 -0
- data/data/som/som_user_report.csv +329 -0
- data/data/stb/STB_USERS.csv +177 -0
- data/data/stb/STB_USERS.pdf +0 -0
- data/data/stb/stb_user_map.txt +33 -0
- data/data/swift_online/UserReport.xlsx +0 -0
- data/data/swift_online/swo_access_user_map.txt +18 -0
- data/data/t24/T24_Grp_Rpt.csv +484 -0
- data/data/t24/T24_User_Rpt.csv +567 -0
- data/data/t24/t24_grp.xml +2904 -0
- data/data/t24/t24_user_map.txt +197 -0
- data/data/t24/t24_usr.xml +9628 -0
- data/data/vpn/Capture_VPN.PNG +0 -0
- data/data/wms/role_rpt.txt +451 -0
- data/data/wms/user_rpt.txt +55 -0
- data/data/wms/wms_user_map.txt +55 -0
- data/data/yst/YiShiTong_Org.csv +21 -0
- data/data/yst/YiShiTong_User.csv +163 -0
- data/data/yst/yst_user_map.txt +163 -0
- data/demos/filter_email.rb +19 -0
- data/demos/idm_ad_reload.rb +164 -0
- data/lib/ucert.rb +82 -0
- data/lib/ucert/ad_tracker.rb +694 -0
- data/lib/ucert/adp_payroll_tracker.rb +189 -0
- data/lib/ucert/aix_tracker.rb +175 -0
- data/lib/ucert/alliance_swift_tracker.rb +300 -0
- data/lib/ucert/audiolog_tracker.rb +67 -0
- data/lib/ucert/bloomberg_tracker.rb +96 -0
- data/lib/ucert/check21_tracker.rb +95 -0
- data/lib/ucert/citidirect_be_tracker.rb +418 -0
- data/lib/ucert/citidirect_securities_tracker.rb +230 -0
- data/lib/ucert/citrix_sharefile_tracker.rb +196 -0
- data/lib/ucert/clear_par_tracker.rb +187 -0
- data/lib/ucert/cmbrun_ny_tracker.rb +244 -0
- data/lib/ucert/cvm_tracker.rb +230 -0
- data/lib/ucert/db_direct_tracker.rb +205 -0
- data/lib/ucert/equinix_tracker.rb +202 -0
- data/lib/ucert/fis_egifts_tracker.rb +249 -0
- data/lib/ucert/fis_prime_tracker.rb +391 -0
- data/lib/ucert/frb_tracker.rb +232 -0
- data/lib/ucert/go_contact_tracker.rb +778 -0
- data/lib/ucert/jpm_access_tracker.rb +205 -0
- data/lib/ucert/madison535_tracker.rb +273 -0
- data/lib/ucert/mantis_tracker.rb +249 -0
- data/lib/ucert/sage100_tracker.rb +355 -0
- data/lib/ucert/som_tracker.rb +223 -0
- data/lib/ucert/stb_tracker.rb +199 -0
- data/lib/ucert/swift_online_tracker.rb +197 -0
- data/lib/ucert/t24_tracker.rb +342 -0
- data/lib/ucert/utils/utils.rb +200 -0
- data/lib/ucert/vpn_tracker.rb +94 -0
- data/lib/ucert/wms_tracker.rb +240 -0
- data/lib/ucert/yst_tracker.rb +264 -0
- data/test/ad_testfiles/ldap_computer_test.txt +21 -0
- data/test/ad_testfiles/ldap_person_test.txt +21 -0
- data/test/aix_testfiles/application1.txt +7 -0
- data/test/aix_testfiles/application2.txt +15 -0
- data/test/alliance_swift_testfiles/Swift_Operator_Details_Test.xlsx +0 -0
- data/test/alliance_swift_testfiles/Swift_Operator_Profiles_Details_Test.xlsx +0 -0
- data/test/alliance_swift_testfiles/swift_operator_map_test.txt +55 -0
- data/test/alliance_swift_testfiles/swift_operator_map_test_2.txt +55 -0
- data/test/alliance_swift_testfiles/swift_operator_map_test_format_fixed.txt +55 -0
- data/test/citidirect_be_testfiles/UserProfileEntitlementsReport_Test.xlsx +0 -0
- data/test/citidirect_securities_testfiles/User_Entitlements_Report___CLNT_Test.xml +48 -0
- data/test/citrix_sharefile_testfiles/ShareFile_Access_Report_Test.xlsx +0 -0
- data/test/cmbrun_ny_testfiles/CMBNY_Position_Rpt_02242016_test.xlsx +0 -0
- data/test/cmbrun_ny_testfiles/CMBRUN_USER_RPT_Test.xlsx +0 -0
- data/test/db_direct_testfiles/accountpermission_Test.xlsx +0 -0
- data/test/equinix_testfiles/Secured Access List_CHINA MERCHANTS BANK_TEST.xlsx +0 -0
- data/test/fis_egifts_testfiles/CHINA_MERCHANTS_BANK_-_USER_ACCOUNT_FUNCTION_REPORT_TEST.xlsx +0 -0
- data/test/fis_prime_testfiles/Prime_Operator_Rights_Report_Test.xml +158 -0
- data/test/fis_prime_testfiles/Prime_Operator_Status_Report_Copy.xml +1659 -0
- data/test/fis_prime_testfiles/Prime_Operator_Status_Report_Test.xml +51 -0
- data/test/fis_prime_testfiles/Prime_Operators_and_Roles_Report_Copy.xml +1360 -0
- data/test/fis_prime_testfiles/Prime_Operators_and_Roles_Report_Test.xml +45 -0
- data/test/fis_prime_testfiles/Prime_Rights_by_Role_Report_Test.xml +65 -0
- data/test/fis_prime_testfiles/prime_user_map.txt +3 -0
- data/test/frb_testfiles/FRB_Subscriber_Roles_Report_Test.xlsx +0 -0
- data/test/go_contact_testfiles/go_contact_test.xlsx +0 -0
- data/test/jpm_access_testfiles/Capture.PNG +0 -0
- data/test/jpm_access_testfiles/jpm_user_entitlements_details_original.txt +208 -0
- data/test/jpm_access_testfiles/jpm_user_entitlements_details_test.txt +7 -0
- data/test/madison535_testfiles/535madison_bldg_pass_2_Test.xlsx +0 -0
- data/test/madison535_testfiles/535madison_bldg_pass_Test.xlsx +0 -0
- data/test/mantis_testfiles/Mantis_AccessLevels_Test.xlsx +0 -0
- data/test/mantis_testfiles/Mantis_ActiveUsers_Rpt_Test.xlsx +0 -0
- data/test/sage100_testfiles/SY_UserReport_RolePreferencesDetails_Test.xlsx +0 -0
- data/test/sage100_testfiles/SY_UserReport_RoleTaskPermissionsDetails_Test.xlsx +0 -0
- data/test/som_testfiles/som_user_map_test.txt +7 -0
- data/test/som_testfiles/som_user_report_test.csv +25 -0
- data/test/stb_testfiles/STB_USERS_test.csv +24 -0
- data/test/stb_testfiles/STB_USERS_test_constant.csv +24 -0
- data/test/swift_online_testfiles/UserReport.xls +0 -0
- data/test/swift_online_testfiles/UserReport_Test.xlsx +0 -0
- data/test/swift_online_testfiles/test_outline_level.rb +7 -0
- data/test/t24_testfiles/T24_Grp_Rpt_Test.csv +7 -0
- data/test/t24_testfiles/T24_User_Rpt_Test.csv +7 -0
- data/test/test_ad_tracker.rb +148 -0
- data/test/test_aix_tracker.rb +71 -0
- data/test/test_alliance_swift_tracker.rb +131 -0
- data/test/test_audiolog_tracker.rb +23 -0
- data/test/test_check21_tracker.rb +30 -0
- data/test/test_citidirect_be_tracker.rb +110 -0
- data/test/test_citidirect_securities_tracker.rb +89 -0
- data/test/test_citrix_sharefile_tracker.rb +105 -0
- data/test/test_cmbrun_ny_tracker.rb +112 -0
- data/test/test_db_direct_tracker.rb +125 -0
- data/test/test_equinix_tracker.rb +119 -0
- data/test/test_fis_egifts_tracker.rb +105 -0
- data/test/test_fis_prime_tracker.rb +288 -0
- data/test/test_frb_tracker.rb +104 -0
- data/test/test_go_contact.rb +276 -0
- data/test/test_jpm_access_tracker.rb +122 -0
- data/test/test_madison535_tracker.rb +125 -0
- data/test/test_mantis_tracker.rb +133 -0
- data/test/test_sage100_tracker.rb +120 -0
- data/test/test_som_tracker.rb +71 -0
- data/test/test_stb_tracker.rb +120 -0
- data/test/test_swift_online_tracker.rb +116 -0
- data/test/test_t24_tracker.rb +151 -0
- data/test/test_utils.rb +46 -0
- data/test/test_vpn_tracker.rb +56 -0
- data/test/test_wms_tracker.rb +109 -0
- data/test/test_yst_tracker.rb +133 -0
- data/test/utils_testfiles/file2list_test.txt +13 -0
- data/test/utils_testfiles/load_know_user_map_testfile.txt +4 -0
- data/test/wms_testfiles/role_rpt_test.txt +6 -0
- data/test/wms_testfiles/user_rpt_test.txt +6 -0
- data/test/yst_testfiles/YiShiTong_Org_Test.csv +18 -0
- data/test/yst_testfiles/YiShiTong_User_Test.csv +5 -0
- data/ucert.gemspec +52 -0
- data/version.txt +12 -0
- metadata +410 -0
data/bin/adp_dump
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out ADP employee table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
# Dump out the Madison535 entitlement table into the plain text format, to be ready for Database imported
|
15
|
+
require 'optparse'
|
16
|
+
require 'ostruct'
|
17
|
+
require 'ucert'
|
18
|
+
|
19
|
+
class CmdOptions
|
20
|
+
# Returen an OpenStruct describing the command line options
|
21
|
+
def self.parse(args)
|
22
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
23
|
+
@options.verbose = false # verbose and banner are key and value
|
24
|
+
@options.banner = "Usage: #{__FILE__ } -h"
|
25
|
+
@version = ["0","1"] # Program version information
|
26
|
+
@last_change = "09/12/2017"
|
27
|
+
opt_parser = OptionParser.new do |opts|
|
28
|
+
|
29
|
+
# Boolean switch for the verbose mode switch
|
30
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
31
|
+
@options.verbose = v
|
32
|
+
end
|
33
|
+
|
34
|
+
# Boolean switch for for user table dump switch
|
35
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
36
|
+
@options.user = v
|
37
|
+
end
|
38
|
+
|
39
|
+
# Displaying help.
|
40
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
41
|
+
puts opts
|
42
|
+
exit
|
43
|
+
end
|
44
|
+
|
45
|
+
# Another typical switch to print the version.
|
46
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
47
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
48
|
+
puts @options.version
|
49
|
+
exit
|
50
|
+
end
|
51
|
+
end
|
52
|
+
opt_parser.parse!(args)
|
53
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
54
|
+
return @options
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
##########################################################################
|
59
|
+
### Main ###
|
60
|
+
##########################################################################
|
61
|
+
# Command line arguments structure
|
62
|
+
@options=CmdOptions.parse(ARGV)
|
63
|
+
#puts "Options: #{@options}"
|
64
|
+
if @options.user
|
65
|
+
k=Ucert::AdpPayrollTracker.new(:verbose=>@options.verbose)
|
66
|
+
k.print_user
|
67
|
+
k=nil
|
68
|
+
else
|
69
|
+
puts "Usage: #{__FILE__} -h"
|
70
|
+
end
|
data/bin/aix_dump
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out CitiDirect BE user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "02/29/2016"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::AixTracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|
data/bin/audiolog_dump
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out Audiolog user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "02/17/2016"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::AudiologTracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|
data/bin/bloomberg_dump
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out Bloomberg user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "01/13/2016"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::BloombergTracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|
data/bin/check21_dump
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out VPN user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "01/20/2016"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::Check21Tracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out CitiDirect BE user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "02/19/2016"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::CitidirectBETracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# ucert
|
4
|
+
#
|
5
|
+
# A Ruby library for enterprise user account certification / recertification / audit project
|
6
|
+
#
|
7
|
+
# Copyright (c) CMBNY Risk Department
|
8
|
+
#++
|
9
|
+
|
10
|
+
# Small utility to dump out CitiDirect for securities user entitlement table from our database
|
11
|
+
# The output is in plain-text format and ready for the database import
|
12
|
+
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
require 'ostruct'
|
16
|
+
require 'ucert'
|
17
|
+
|
18
|
+
class CmdOptions
|
19
|
+
# Returen an OpenStruct describing the command line options
|
20
|
+
def self.parse(args)
|
21
|
+
@options = OpenStruct.new # OpenStruct is a structure like hash table
|
22
|
+
@options.verbose = false # verbose and banner are key and value
|
23
|
+
@options.banner = "Usage: #{__FILE__} -h"
|
24
|
+
@version = ["0","1"] # Program version information
|
25
|
+
@last_change = "10/30/2015"
|
26
|
+
opt_parser = OptionParser.new do |opts|
|
27
|
+
|
28
|
+
# Boolean switch for the verbose mode switch
|
29
|
+
opts.on("-v", "--[no-]verbose", "Verbose Mode") do |v|
|
30
|
+
@options.verbose = v
|
31
|
+
end
|
32
|
+
|
33
|
+
# Boolean switch for for user table dump switch
|
34
|
+
opts.on("-u", "--[no-]user", "User Mode") do |v|
|
35
|
+
@options.user = v
|
36
|
+
end
|
37
|
+
|
38
|
+
# Displaying help.
|
39
|
+
opts.on("-h", "--help", "Display Help") do |v|
|
40
|
+
puts opts
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
# Another typical switch to print the version.
|
45
|
+
opts.on_tail("-V","--version", String, "Show Program Version") do
|
46
|
+
@options.version = "Program Version: #{@version.join('.')}; Last Modification: #{@last_change}"
|
47
|
+
puts @options.version
|
48
|
+
exit
|
49
|
+
end
|
50
|
+
end
|
51
|
+
opt_parser.parse!(args)
|
52
|
+
puts "Captured Command Line Arguments: #{@options}" if @options.verbose
|
53
|
+
return @options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
##########################################################################
|
58
|
+
### Main ###
|
59
|
+
##########################################################################
|
60
|
+
# Command line arguments structure
|
61
|
+
@options=CmdOptions.parse(ARGV)
|
62
|
+
#puts "Options: #{@options}"
|
63
|
+
if @options.user
|
64
|
+
k=Ucert::CitidirectSecuritiesTracker.new(:verbose=>@options.verbose)
|
65
|
+
k.print_user_entitlement
|
66
|
+
k=nil
|
67
|
+
else
|
68
|
+
puts "Usage: ruby #{__FILE__} -h"
|
69
|
+
end
|