Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
dd0e1c27
Commit
dd0e1c27
authored
Aug 27, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 680594: Remove contrib/yp_nomail.sh
parent
4f023328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
94 deletions
+1
-94
README
contrib/README
+1
-17
yp_nomail.sh
contrib/yp_nomail.sh
+0
-77
No files found.
contrib/README
View file @
dd0e1c27
...
...
@@ -8,19 +8,13 @@ This file is encoded in UTF8 for purposes of contributor names.
This directory includes:
bugzilla_ldapsync.rb -- Script that can be run via Cron that queries an LDAP
server for e-mail addresses to add Bugzilla users
for. Will optionally disable Bugzilla users with
no matching LDAP record. Contributed by Thomas
Stromberg <thomas+bugzilla@stromberg.org>.
bugzilla-submit/ -- A standalone bug submission program.
bzdbcopy.pl -- A script to copy data from an installation running
on one DB platform to an installation running on
another DB platform.
bz_webservice_demo.p -- An example script that demonstrates how to talk to
bz_webservice_demo.p
l
-- An example script that demonstrates how to talk to
Bugzilla via XMLRPC.
cmdline/ -- Various commands for querying your Bugzilla
...
...
@@ -30,13 +24,6 @@ bz_webservice_demo.p -- An example script that demonstrates how to talk to
from a given directory. The log is useful when
changes need to be backed out.
gnatsparse/ -- A Python script used to import a GNATS database
into Bugzilla.
gnats2bz.pl -- A Perl script to help import bugs from a GNATS
database into a Bugzilla database. Contributed by
Tom Schutter <tom@platte.com>.
jb2bz.py -- Script to import bugs from JitterBug to Bugzilla.
merge-users.pl -- Script to merge two user accounts. The activities
...
...
@@ -68,6 +55,3 @@ sendunsentbugmail.pl -- Script to find bugs with un-sent mail and to
missing users to Bugzilla. Can disable/update
non-existing/changed information. Contributed by
Andreas Höfler <andreas.hoefler@bearingpoint.com>.
yp_nomail.sh -- Script that can be run via Cron that regularly updates
the nomail file for terminated employees.
contrib/yp_nomail.sh
deleted
100755 → 0
View file @
4f023328
#!/bin/sh
# -*- Mode: ksh -*-
##############################################################################
# yp_nomail
#
# Our mail admins got annoyed when bugzilla kept sending email
# to people who'd had bugzilla entries and left the company. They
# were no longer in the list of valid email users so it'd bounce.
# Maintaining the 'data/nomail' file was a pain. Luckily, our UNIX
# admins list all the users that ever were, but the people who've left
# have a distinct marker in their password file. For example:
#
# fired:*LK*:2053:1010:You're Fired Dude:/home/loser:/bin/false
#
# This script takes advantage of the "*LK*" convention seen via
# ypcat passwd and dumps those people into the nomail file. Any
# manual additions are kept in a "nomail.(domainname)" file and
# appended to the list of yp lockouts every night via Cron
#
# 58 23 * * * /export/bugzilla/contrib/yp_nomail.sh > /dev/null 2>&1
#
# Tak ( Mark Takacs ) 08/2000
#
# XXX: Maybe should crosscheck w/bugzilla users?
##############################################################################
####
# Configure this section to suite yer installation
####
DOMAIN
=
`
domainname
`
MOZILLA_HOME
=
"/export/mozilla"
BUGZILLA_HOME
=
"
${
MOZILLA_HOME
}
/bugzilla"
NOMAIL_DIR
=
"
${
BUGZILLA_HOME
}
/data"
NOMAIL
=
"
${
NOMAIL_DIR
}
/nomail"
NOMAIL_ETIME
=
"
${
NOMAIL
}
.
${
DOMAIN
}
"
NOMAIL_YP
=
"
${
NOMAIL
}
.yp"
FIRED_FLAG
=
"
\*
LK
\*
"
YPCAT
=
"/usr/bin/ypcat"
GREP
=
"/usr/bin/grep"
SORT
=
"/usr/bin/sort"
########################## no more config needed #################
# This dir comes w/Bugzilla. WAY too paranoid
if
[
!
-d
${
NOMAIL_DIR
}
]
;
then
echo
"Creating
$date_dir
"
mkdir
-p
${
NOMAIL_DIR
}
fi
#
# Do some (more) paranoid checking
#
touch
${
NOMAIL
}
if
[
!
-w
${
NOMAIL
}
]
;
then
echo
"Can't write nomail file:
${
NOMAIL
}
-- exiting"
exit
fi
if
[
!
-r
${
NOMAIL_ETIME
}
]
;
then
echo
"Can't access custom nomail file:
${
NOMAIL_ETIME
}
-- skipping"
NOMAIL_ETIME
=
""
fi
#
# add all the people with '*LK*' password to the nomail list
# XXX: maybe I should customize the *LK* string. Doh.
#
LOCKOUT
=
`
$YPCAT
passwd |
$GREP
"
${
FIRED_FLAG
}
"
|
cut
-d
:
-f1
|
sort
>
${
NOMAIL_YP
}
`
`
cat
${
NOMAIL_YP
}
${
NOMAIL_ETIME
}
>
${
NOMAIL
}
`
exit
# end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment