{"id":2635,"date":"2012-12-11T13:04:49","date_gmt":"2012-12-11T18:04:49","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=2635"},"modified":"2012-12-11T13:10:55","modified_gmt":"2012-12-11T18:10:55","slug":"add-bcc-admin-user-with-sql","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2012\/12\/11\/add-bcc-admin-user-with-sql\/","title":{"rendered":"Add BCC admin user with SQL"},"content":{"rendered":"<p>I was having an issue using my AD account to log into the BCC in the load test environment.  In production, we have deleted the admin account for security reasons.  This forces users to use their LDAP credentials, which is good.<\/p>\n<p>In the short run, however, I needed to quickly login so I could troubleshoot an indexing issue.<\/p>\n<p>I traced in the database during a failed login attempt, and found the following tables need to be populated with the values below.<\/p>\n<pre lang=\"sql\">\r\ninsert into dpi_user (id,login,auto_login,password,member,first_name,user_type,\r\nlastpwdupdate,generatedpwd,email_status,receive_email,gender)\r\nvalues('portal-admin','admin',0,'n6CtgGHE4rfKqT\/uObfXMQ==',1,'admin',0,sysdate,0,0,0,1);\r\ninsert into dpi_user_roles(USER_ID,ATG_ROLE) values('portal-admin','epubSuperAdmin');\r\ninsert into dpi_user_roles(USER_ID,ATG_ROLE) values('portal-admin','portal-admin');\r\ninsert into dpi_user_roles(USER_ID,ATG_ROLE) values('portal-admin','srchSearchAdminRole');\r\ninsert into dpi_user_org (ORGANIZATION,USER_ID) values ('root','portal-admin');\r\ninsert into dpi_user_org_anc(USER_ID,SEQUENCE_NUM,ANC_ORG) values ('portal-admin',0,'root');\r\ncommit;\r\n<\/pre>\n<p>Restart the BCC, and this will result in an admin\/admin user you can use (in 10.0.3, anyway) to login to the BCC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was having an issue using my AD account to log into the BCC in the load test environment. In production, we have deleted the admin account for security reasons. This forces users to use their LDAP credentials, which is&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2012\/12\/11\/add-bcc-admin-user-with-sql\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[37,38],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2635"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2635"}],"version-history":[{"count":4,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2635\/revisions"}],"predecessor-version":[{"id":2639,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2635\/revisions\/2639"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2635"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}