rublogin

package module
v0.0.0-...-ca2952f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: ISC Imports: 7 Imported by: 0

README

rublogin

Authenticate a network port within the HIRN network at RUB university (Lock-And-Key login)

Install

Make sure you have Go installed, then go ahead and type:

go install github.com/lacamera/rublogin/cmd/rublogin@latest

Usage

Create a file and add the following fields (in Yaml notation):

user:     # user@example.org
station:  # IP address
password:
rublogin [-verbose] -secrets=/path/to/file

Documentation

Index

Constants

View Source
const URL string = "https://login.rub.de/cgi-bin/laklogin"

Variables

View Source
var Sub = []Status{
	{
		Msg:  "Authentisierung gelungen",
		I18n: "Successful login",
	},
	{
		Msg:  "Benutzername oder Password falsch",
		I18n: "Wrong or missing credentials",
	},
}

Functions

func DumpReq

func DumpReq(s *Secrets) *http.Request

Types

type Secrets

type Secrets struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Station  string `yaml:"station"`
	URL      string `yaml:"url"`
}

func (*Secrets) Unmarshal

func (s *Secrets) Unmarshal(buffer []byte)

type Status

type Status struct {
	Msg  string
	I18n string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL