diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-20 21:13:58 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-21 14:42:08 -0500 |
commit | 63bceed94b36e41b38b0ddfc35f09dd8b7837e3f (patch) | |
tree | 2f75e53c50d8f93cc54cf7a079884ef5ad700c08 /src/mongo/s | |
parent | 0b48bffd8417f87201ab44f2c7b00cf5f77001e4 (diff) | |
download | mongo-63bceed94b36e41b38b0ddfc35f09dd8b7837e3f.tar.gz |
SERVER-7572 Remove almost all remaining references to AuthenticationInfo
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/d_migrate.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/server.cpp | 4 | ||||
-rw-r--r-- | src/mongo/s/writeback_listener.cpp | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/s/d_migrate.cpp b/src/mongo/s/d_migrate.cpp index 87a95e06878..b257a49b485 100644 --- a/src/mongo/s/d_migrate.cpp +++ b/src/mongo/s/d_migrate.cpp @@ -725,7 +725,6 @@ namespace mongo { OID::gen().toString()).c_str()); if (!noauth) { - cc().getAuthenticationInfo()->authorize("local", internalSecurity.user); cc().getAuthorizationManager()->grantInternalAuthorization("_cleanupOldData"); } @@ -1930,7 +1929,6 @@ namespace mongo { Client::initThread( "migrateThread" ); if (!noauth) { ShardedConnectionInfo::addHook(); - cc().getAuthenticationInfo()->authorize("local", internalSecurity.user); cc().getAuthorizationManager()->grantInternalAuthorization("_migrateThread"); } migrateStatus.go(); diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index f15c87f3eb4..027a943d8da 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -94,9 +94,7 @@ namespace mongo { virtual ~ShardedMessageHandler() {} virtual void connected( AbstractMessagingPort* p ) { - ClientInfo *c = ClientInfo::create(p); - if( p->remote().isLocalHost() ) - c->getAuthenticationInfo()->setIsALocalHostConnectionWithSpecialAuthPowers(); + ClientInfo::create(p); } virtual void process( Message& m , AbstractMessagingPort* p , LastError * le) { diff --git a/src/mongo/s/writeback_listener.cpp b/src/mongo/s/writeback_listener.cpp index 407ceac1d73..4e4fcbae139 100644 --- a/src/mongo/s/writeback_listener.cpp +++ b/src/mongo/s/writeback_listener.cpp @@ -293,8 +293,6 @@ namespace mongo { ClientInfo * ci = r.getClientInfo(); if (!noauth) { - // TODO: Figure out why this is 'admin' instead of 'local'. - ci->getAuthenticationInfo()->authorize("admin", internalSecurity.user); ci->getAuthorizationManager()->grantInternalAuthorization( "_writebackListener"); } |