Skip to content

Latest commit

 

History

History
158 lines (130 loc) · 5.72 KB

CHANGELOG.md

File metadata and controls

158 lines (130 loc) · 5.72 KB

Changelog

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Security

0.8.0 - 2023-11-01

Added

  • Add Cargo features for auth (default) and module
  • Add internal pam-macros crate (experimental for now)
  • Reexport pam_sys at crate root
  • Add experimental support for modules via PamModule trait and impl_pam_module macro
  • Add Client::{change_authentication_token,get_user}

Changed

  • Bump pam-sys to 1.0.0-alpha5
  • Possibly breaking: make conv::PasswordConv public
  • Change Authenticator::get_handler to Authenticator::handler_mut and add Authenticator::handler for immutable access to the handler
  • Move CI to azure pipelines (and remove .travis.yml)
  • Make PamReturnCode field in PamError public to allow matching on it
  • Generate enums via proc macro #[pam_enum] (experimental)
    • Make variants capitalized snake_case
    • Automatically implement std::convert::From<i32> to cast return values
  • Add include setting in Cargo.toml
  • Export pam_sys at crate::ffi

Fixed

  • Add untested(!) missing drop implementation for PamEnvList in non-linux builds

Removed

  • Remove Conversation::username as this should be done by the Client itself

0.7.0 - 2019-02-07

Added

  • Add Converse trait to handle conversation with pam
  • Add example: spawn_bash to demonstrate simple authentication
  • Add dev-dependency rpassword

Changed

  • RENAME from pam-auth to pam
  • Update to rust edition 2018
  • Change Authenticator to be generic over a Converse and add with_password function for username/password authentication
  • Update users dependency (0.5.3 -> ^0.8)

Fixed

  • Do not set response on errors in pam conversation function (PR #12)

Removed

  • Removed deprecated simple module

0.5.5 - 2018-07-04

Changed

  • Updated libc dependency (0.2.39 -> 0.2.42)
  • Updated pam-sys dependency (0.5.5 -> 0.5.6)

0.5.4 - 2018-03-21

Changed

  • Updated libc dependency (0.2.33 -> 0.2.39)
  • Updated pam-sys dependency (0.5.4 -> 0.5.5)
  • Updated users dependency (0.5.2 -> 0.5.3)

Fixed

  • Fix build on OSX and linux-arm

0.5.3 - 2017-12-04

Changed

  • Only provide official support for Rust stable, beta and nightly (mainly through travis)
  • Updated libc dependency (0.2.20 -> 0.2.33)
  • Updated pam-sys dependency (0.5.3 -> 0.5.4)
  • Addded cache: cargo directive to speedup CI

0.5.2 - 2017-06-19

Fixed

  • Fixed missing null terminations in PAM converse function (Pull request #6)

0.5.1 - 2017-05-25

Fixed

  • Removed use of unstable feature ptr_as_ref to build on 1.5.0 again

0.5.0 - 2017-02-18

Added

  • Add travis-ci badge to Cargo.toml
  • Added custom error type PamError and result type
  • Added env module for PAM environment modules

Changed

  • Moved Authenticator to its own module
  • Removed custom strdup function in ffi and replaced it with the libc version
  • Tracked pam-sys
    • Use of Rust types where applicable
    • Removal of obsolete unsafe blocks
  • Changed Authenticator::open_session to also insert the PAM environment variables into the process environment

0.4.1 2017-01-20

Added

  • Added license badge to README.md

Changed

  • Updated libc dependency (0.2.9 -> 0.2.20)
  • Updated pam-sys dependency (0.4.0 -> 0.4.3)
  • Updated users dependency (0.5.1 -> 0.5.2)
  • Moved call to pam_setcred from Authenticator::authenticate() to Authenticator::open_session
  • Moved documentation to docs.rs

Fixed

  • Fixed possibly undefined behaviour (taking a pointer of a dropped CString) in Authenticator::new(..)

Removed

  • Removed .travis-update-gh-pages.sh and obsolete rust versions from .travis.yml

0.4.0 - 2016-04-11

Changed

  • Improved travis-ci integration to test against 1.5.0 and above
  • Updated libc dependency (0.2.2 -> 0.2.9)
  • Updated pam-sys dependency (0.3.0 -> 0.4.0)
  • Updated users dependency (0.4.4 -> 0.5.1)

0.3.1 - 2016-01-14

Changed

  • Relicensed to dual MIT/Apache-2.0
  • Improved travis-ci integration to use container based builds

0.3.0 - 2015-12-08

Added

  • CHANGELOG.md
  • pam-auth now builds on Rust stable (and beta)!
  • Better travis-ci integration (test on stable, beta and nightly)

Changed

  • Updated libc dependency (0.1.8 -> 0.2.2)
  • Updated pam-sys dependency (0.2.1 -> 0.3.0)
  • Updated users dependency (0.4.2 -> 0.4.4)