[Bug 1672010] [NEW] package postgresql-9.5 9.5.6-0ubuntu0.16.04 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1
Public bug reported: i just using this in my rails project and when i deployed it on heroku and creating PostgreSQL db it giving me this error ProblemType: Package DistroRelease: Ubuntu 16.04 Package: postgresql-9.5 9.5.6-0ubuntu0.16.04 ProcVersionSignature: Ubuntu 4.4.0-66.87-generic 4.4.44 Uname: Linux 4.4.0-66-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.4 AptOrdering: postgresql-contrib-9.5: Purge postgresql-9.5: Purge NULL: ConfigurePending Architecture: amd64 Date: Sat Mar 11 03:42:00 2017 ErrorMessage: subprocess installed post-removal script returned error exit status 1 InstallationDate: Installed on 2016-10-11 (150 days ago) InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) RelatedPackageVersions: dpkg 1.18.4ubuntu1.1 apt 1.2.15ubuntu0.2 SourcePackage: postgresql-9.5 Title: package postgresql-9.5 9.5.6-0ubuntu0.16.04 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: postgresql-9.5 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1672010 Title: package postgresql-9.5 9.5.6-0ubuntu0.16.04 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-9.5/+bug/1672010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1292143] Re: 'ldapdeleteuser' does not remove user from additional LDAP groups
** Changed in: ldapscripts (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1292143 Title: 'ldapdeleteuser' does not remove user from additional LDAP groups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ldapscripts/+bug/1292143/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1292143] Re: 'ldapdeleteuser' does not remove user from additional LDAP groups
Fix has been committed to the Upstream project: https://sourceforge.net/p/ldapscripts/code/ci/9806d8cb9e1bbc14fbce631457a325317be99ffe/ ** Changed in: ldapscripts (Ubuntu) Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1292143 Title: 'ldapdeleteuser' does not remove user from additional LDAP groups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ldapscripts/+bug/1292143/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1292143] Re: 'ldapdeleteuser' does not remove user from additional LDAP groups
** Changed in: ldapscripts (Ubuntu) Assignee: (unassigned) => Kam Nasim (knasim-wrs) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1292143 Title: 'ldapdeleteuser' does not remove user from additional LDAP groups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ldapscripts/+bug/1292143/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1292143] Re: 'ldapdeleteuser' does not remove user from additional LDAP groups
Yes agreed this is a security concern. Consider the scenario where an employee leaves the company and then rejoins only to have all his previous group memberships automatically renewed without the admin having no knowledge of this. I have the following patch applied in my ldapscripts: --- lib/runtime |7 + sbin/ldapdeleteuser | 25 - --- a/lib/runtime +++ b/lib/runtime @@ -620,6 +620,13 @@ _findentry () { _ENTRY=$(_ldapsearch "$1" "$2" dn | grep "dn: " | head -n 1 | sed "s|dn: ||") } +# Finds a list of entries in the LDAP directory +# Input : base ($1), filter ($2) +# Output : an array of dns for all the matching entries found ($_ENTRYLIST) +_findentrylist () { + _ENTRYLIST=( $(_ldapsearch "$1" "$2" dn | grep "dn: " | sed "s|dn: ||") ) +} + # Get a particular attribute from LDAP # Input : entry DN ($1), attribute ($2) # Output : the requested attribute of the entry ($_ATTRIBUTE) --- a/sbin/ldapdeleteuser +++ b/sbin/ldapdeleteuser @@ -37,9 +37,30 @@ _findentry "$USUFFIX,$SUFFIX" "(&(object # Delete entry _ldapdelete "$_ENTRY" || end_die "Error deleting user $_ENTRY from LDAP" - # Optionally, delete the sudoer entry if it exists _ldapdeletesudo $1 [ $? -eq 2 ] && end_die "Found sudoEntry for user $_ENTRY but unable to delete" -end_ok "Successfully deleted user $_ENTRY from LDAP" +# Finally, delete this user from all groups for which this was a memberUid +_findentrylist "$SUFFIX" "(&(objectClass=posixGroup)(memberUid=$1))" +if [ ! -z "$_ENTRYLIST" ]; then + _UID="$1" # needed by Ldif + # Stow the user entry for later + userEntry="$_ENTRY" + for _ENTRY in "${_ENTRYLIST[@]}"; do +# Modify group entry +_extractldif 2 | _filterldif | _utf8encode | _ldapmodify + done +fi + + +end_ok "Successfully deleted user $userEntry from LDAP" + +# Ldif templates # +# +# PosixGroup (level "2") : +##dn: +##changetype: modify +##delete: +##: +# -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1292143 Title: 'ldapdeleteuser' does not remove user from additional LDAP groups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ldapscripts/+bug/1292143/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1423151] Re: openafs-modules-dkms 1.6.7-1: openafs kernel module failed to build
Hi, I have the same question as seth. Can you tell what the proposed packages are and how to install them?? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1423151 Title: openafs-modules-dkms 1.6.7-1: openafs kernel module failed to build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openafs/+bug/1423151/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs