| Steps To Reproduce: |
$ scons -j 30 mongo mongod mongos mongorestore mongodump && mkdir 2014-09-16-nossl && mv mongo mongod mongos mongorestore mongodump 2014-09-16-nossl/
|
$ ./2014-09-16-nossl/mongod --smallfiles --setParameter authenticationMechanisms=SCRAM-SHA-1 --dbpath /srv/2.8
|
$ ./2014-09-16-nossl/mongo
|
switched to db admin
> db.createUser({user: 'admin', pwd: 'pass', roles: [{role: 'root', db: 'admin'}]})
|
Successfully added user: {
|
"user" : "admin",
|
"roles" : [
|
{
|
"role" : "root",
|
"db" : "admin"
|
}
|
]
|
}
|
> db.auth({user:"admin", pwd:"pass", mechanism:"SCRAM-SHA-1"})
|
Error: 1 The server is not compiled with SSL support
restarting mongod without --auth and then fire up mongo shell again:
> db.system.users.findOne()
|
{
|
"_id" : "admin.admin",
|
"user" : "admin",
|
"db" : "admin",
|
"credentials" : {
|
"MONGODB-CR" : "e4e538f5dcb52537cad02bbf8491693c"
|
},
|
"roles" : [
|
{
|
"role" : "root",
|
"db" : "admin"
|
}
|
]
|
}
|
>
|