Example #1
0
    def get_login_user(self, dbname):
        login_user = users.get_server_login_user(self, dbname)
        # if no login user found then check global login

        if not login_user:
            login_user = users.get_global_login_user(self, dbname)

        # if dbname is local and we cant find anything yet
        # THEN assume that local credentials == admin credentials
        if not login_user and dbname == "local":
            login_user = self.get_login_user("admin")

        return login_user
Example #2
0
    def get_login_user(self, dbname):
        login_user =  users.get_server_login_user(self, dbname)
        # if no login user found then check global login

        if not login_user:
            login_user = users.get_global_login_user(self, dbname)

        # if dbname is local and we cant find anything yet
        # THEN assume that local credentials == admin credentials
        if not login_user and dbname == "local":
            login_user = self.get_login_user("admin")

        return login_user
Example #3
0
    def get_login_user(self, dbname):
        login_user = users.get_server_login_user(self, dbname)
        # if no login user found then check global login

        if not login_user:
            login_user = users.get_global_login_user(self, dbname)

        # if dbname is local and we cant find anything yet
        # THEN assume that local credentials == admin credentials
        if not login_user and dbname == "local":
            login_user = self.get_login_user("admin")

        if login_user and not login_user.get("password"):
            login_user["password"] = self.lookup_password(dbname, login_user["username"])

        return login_user
Example #4
0
    def get_login_user(self, dbname):
        login_user = users.get_server_login_user(self, dbname)
        # if no login user found then check global login

        if not login_user:
            login_user = users.get_global_login_user(self, dbname)

        # if dbname is local and we cant find anything yet
        # THEN assume that local credentials == admin credentials
        if not login_user and dbname == "local":
            login_user = self.get_login_user("admin")

        if login_user and not login_user.get("password"):
            login_user["password"] = self.lookup_password(dbname, login_user["username"])

        return login_user