How do you enforce specific password syntax rules?

Hi Guys,
I'm setting up iPlanet Directory Server 5.1.3 and I need to configure it to enforce a password rule which says that you must have at least one letter and one number in your password. I've searched the documentation and googled the heck out of it, but I can't seem to find any reference as to how to do that. Does anybody have any info on if this is possible and where I might look for some info on how to do it?
Thanks,
Mike

Thanks gary, excelent find, ive just installed it on solaris 10.
heres what happened when i tried to use a password
test
then tester
then tester1
$ passwd
passwd: Changing password for admin
Enter existing login password:
New Password:
passwd: Password too short - must be at least 6 characters.
Please try again
New Password:
passwd: The password must contain at least 1 numeric or special character(s).
Please try again
New Password:
Re-enter new Password:
Your new password was rejected for the following reason:
it is based on a dictionary word
Permission denied
to build get hold of pam_cracklib.tar.gz, from sourceforge and
cracklib,2.7.tar.gz
first cracklib, change the DICTPATH in the Makefile for
/usr/dict/pw_dict
do
CC=/opt/sfw/bin/gcc; export CC
and in the utils directory change the make file so all the cc's are gcc
then
make all
now cd cracklib and cp libcrack.a /usr/lib and packer.h to /usr/include
cd to the utils directory and copy all the binaries to /usr/bin
cp mkdict testlib testnum teststr unpacker /usr/bin
now move on to the pam part
unpack and cd to pam_cracklib
edit the GNUmakefile as follows or use this GNUmakefile
# !!! Hello !!!
# Make sure you are using GNU Make, and not some cheap imitation.
# !!! Thank you !!!
OS=$(shell uname)
ARCH=$(shell uname -p)
CRACKLIB_TARGET=pam_cracklib.so
DESTDIR=/usr/lib/security
PERMS=0700
PASSWORD_SRCS=pam_password.c
COMMON_SRCS=pam_module.c logging.c util.c
CRACKLIB_SRCS=cracklib.c $(COMMON_SRCS) $(PASSWORD_SRCS)
CRACKLIB_OBJS=$(CRACKLIB_SRCS:.c=.o)
DICTPATH="/usr/dict/pw_dict"
INCL=
LIBS=-lpam
CRACK_LIBS=-lcrack
CC=gcc
CFLAGS=-g -Wall -fPIC -D$(OS) -D$(ARCH)
LD=ld
ifeq ($(OS),SunOS)
LDFLAGS=-G -z redlocsym -L/usr/lib -R/usr/lib
else
LDFLAGS=-x --shared -L/usr/lib -R/usr/lib<br />
endif
RM=rm
FORCE_REBUILD=
password: $(CRACKLIB_TARGET)
# We will use this when cproto(1) stops sucking
# %.h : %.c $(FORCE_REBUILD) # A ".o" file depends on the corresponding ".c" fil
e
# cproto -E 0 $<
%.o : %.c $(FORCE_REBUILD) # A ".o" file depends on the corresponding ".c" file
$(CC) $(INCL) $(CFLAGS) -c $< -o $@
% : %.o # override default linking rule just in case
@echo
@echo $@ is not a valid target
@echo
$(CRACKLIB_TARGET) : CFLAGS += -DMODULE_NAME=\"$(CRACKLIB_TARGET)\" -DCRACKLIB_
DICTPATH=\"$(DICTPATH)\"
$(CRACKLIB_TARGET) : $(FORCE_REBUILD) $(CRACKLIB_OBJS)
$(LD) $(LDFLAGS) -o $@ $(CRACKLIB_OBJS) $(LIBS) $(CRACK_LIBS)
@echo
@echo $@ built successfully!
@echo
# Need -O so the inline "stat()" gets compiled, grr
$(DESTDIR)/$(CRACKLIB_TARGET) : $(CRACKLIB_TARGET)
@echo installing...
test -d $(DESTDIR) || mkdir -p $(DESTDIR)
cp $(CRACKLIB_TARGET) $(DESTDIR)
chown root $(DESTDIR)/$(CRACKLIB_TARGET)
chgrp root $(DESTDIR)/$(CRACKLIB_TARGET)
chmod $(PERMS) $(DESTDIR)/$(CRACKLIB_TARGET)
$(FORCE_REBUILD):
@echo rebuilding...
install: $(DESTDIR)/$(CRACKLIB_TARGET)
rebuild:
$(MAKE) $(MOREMAKEFLAGS) "FORCE_REBUILD=REBUILD"
clean:
$(RM) -f $(CRACKLIB_TARGET)
$(RM) -f $(CRACKLIB_OBJS)
$(RM) -f #*
$(RM) -f *~
now run gmake
and gmake install
edit /etc/pam.conf as follows
95 #
96 other password required pam_dhkeys.so.1
97 other password requisite pam_authtok_get.so.1
98 other password requisite pam_cracklib.so
99 other password requisite pam_authtok_check.so.1
100 other password required pam_authtok_store.so.1
101 #
102 # Support for Kerberos V5 authentication and example configurations can
103 # be found in the pam_krb5(5) man page under the "EXAMPLES" section.
104 #
this is adding line 98 and save the file
thats it
regards peter

Similar Messages

  • HT201303 how do you get your password back if you forget it?

    How do you get your password back for the ipod? I need to know!  I forgot my password.  Is their a a way i can get it back by by my apple account? ! Please someone answer my question

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • HT5624 how can you get your password sent to your email address I do not want to change my password.

    How can you get your password sent to your email address I do not want to change my password.

    If you cannot remember the passcode for the Screen Lock, you will need to Restore the device...
    1)  Connect to iTunes on the computer you usually Sync with and Restore...
    http://support.apple.com/kb/HT1414
    2)  If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/ht4097
    Note on Recovery Mode.
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • How can you reset your password if you forget it?

    Hello my name is khadesha I have a question how do you reset your password if you forgot your pass code?

    Connect the iPod to the computer and restore via iTunes. If necessary, place the iPod inRecovery Mode to allow the restore.

  • How do you get your passwords on itunes if your device is disabled?

    How do you get your password for your device on itunes?

    If you mean passcode, you can't get it from iTunes.  You have to follow one of the solutions listed at the bottom of this article: http://support.apple.com/kb/HT1212.

  • How do you set a password for a text document

    I was wondering, does anyone know how to set a password for a text document for example, if you have your passwords saved on a text document, how can you get a password to retreive them.

    How about Dashcrypt?
    http://www.dashboardwidgets.com/showcase/details.php?wid=588

  • How do you add a password to a secured web sight after you initially said no?

    How do you add a password to Safari for a secured web sight after you initially said no?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

  • HT204291 How do you reset your password?

    How do you reset your password on iPad to use airplay?

    I copied this from another discussion - from a pretty knowledgable Apple TV user.
    If you have forgotten your password, you'll need to reset it from the Apple TV. (settings > AirPlay)

  • How do you restore a password on a locked folder made in disk utility?

    how do you restore a password on a locked folder made in disk utility?

    Hello there, HoseDwellers.
    The following Knowledge Base article as a great step by step instructional on how to change the password for the account:
    OS X: Changing or resetting an account password
    http://support.apple.com/kb/HT1274
    Resetting a user's password in OS X Lion and Mountain Lion
    Important: Passwords for administrator accounts should not be blank.
    Log in with an administrator account. Tip: If you don't know the password of any administrator accounts, see "Resetting the original administrator account password" below.
    From the Apple menu choose System Preferences.
    From the View menu choose Users & Groups.
    Click the lock button if it appears locked; enter the administrator password.
    Select the name of the user whose password you want to change.
    Click the Reset Password button or the Change Password button.
    Enter a new password in both the New Password and Verify fields, and add a Password Hint if desired.
    Click the Reset Password button or the Change Password button.This should get you taken care of.
    Remember, also, that you can restart the computer (you will be prompted to enter your administrator password) and this should log him out  so that when you log back in, you can then follow the above steps with success.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How do you change the password protection for a file if you forget it?

    How do you change the password protection for a file if you forget it?

    Certainly not with Reader...

  • How do you retrieve a password when your Ipod say's connect to ITunes, but when you go on ITunes it says to unlock password?

    How do you retrieve a password when your Ipod say's connect to ITunes, but when you go on ITunes it says to unlock password?

    You will need to do this:
    iOS: Unable to update or restore

  • How do you update Keychain passwords

    I'm fairly new to the Keychain app, so when you initially set-up a new Keychain password, how do you update the password when it changes?
    I know this can be done via Keychain Access eg double clicking the item and entering a new password, is this the only way of doing it?

    Stephen Hogan wrote:
    I'm fairly new to the Keychain app, so when you initially set-up a new Keychain password, how do you update the password when it changes?
    I know this can be done via Keychain Access eg double clicking the item and entering a new password, is this the only way of doing it?
    I think you mean a Keychain items' password. Not the main Keychain application's.
    In this case if you obtain the username and password from Keychain into a pre-filled form, you may change the password in the form and then the Keychain application will ask you for confirmation.
    Ciao,
    Ermanno

  • How can you bypass a password-

    How can you bypass a password.  This is my son's phone and he is in trouble.  I need to access his phone.  The account is in my name.  ATT won't help.

    There is no way to bypass the lock screen password. If there were it would not provide any security. It's not AT&T refusing to help; they can't, because the only place the lock code is stored is on the phone. If the phone is backed up regularly to a computer or to iCloud you can restore it as described in http://support.apple.com/kb/HT1212 and then restore the backup. You will still need the Apple ID and passcode that was used to set up Find my iPhone.

  • HT201412 how can you reset your password to simple 4 digit format?

    How can your reset your password to simple format without reseting the whole phone?

    Turn off passcode, then re-enable such. Note: if you have an Exchange account, the requirement to use a non-simple passcode can be enforced by a profile installed on your phone when setting up the Exchange account.

  • How do you manage your passwords ?

    How do you guys manage your passwords ?
    Do you guys use a password manager ? If yes, what one ? If not, what do you do to 'remember' all your passwords ?
    Last edited by Athunye (2010-09-15 14:29:37)

    as far as how i manage them, i have a small spiral bound notebook with some templates that only i know how to decrypt. something related to the password and then i'll know what it is. and as far as what they go to, i scribble something next to them like "rome", which is big and important like my root drive. (an example).
    but as far as the actual password, mine are usually a line of a frequently read poem, lyrics or quote, etc. an example would be:
    "To himself everyone is immortal; he may know that he is going to die, but he can never know that he is dead." -Samuel Butler
    turns into:
    !H_#(%=?m+t4i6@D-&?cN+7?>2
    if you examine it with the right mind-set it makes sense. most commonly the last two characters if you're familiar with shell (which is what i mix in sometimes). other passwords are more lisp-like or lua-like than not, or not at all, depending on the website and if i decide to mix it in there (short-hand-ish, mind you)

Maybe you are looking for

  • IMovie 11: Viewer does not show clips in project. How do I fix this?

    The viewer in iMovie 11 shows the clips in the Event section, but not in the Project section. Is there any way to fix this problem? I cannot make any videos without being able to view the clips that I want to edit in the project section.

  • Iphoto '09 v8.1.2 upgrade

    First of all, apologies if this is adaft question - I'm not very technological! I have iphoto '09 version 8.1.2. Every time I open it I am offered the opportunity to purchase iLife '11. I finally decided to go for it (even though I don't use iMove or

  • Data Migration from CRM 5.0 to CRM 7.0

    Hi Friends, We are into a re-implementation on CRM 7.0. The old system was on CRM 5.0. Since this is not an upgrade, the data will not copied over from the old system into the new system. So, now I would like to know how to migrate data (master/trans

  • When will apple let us use own on pictures for background?

    I am honestly a huge Apple Ipod brand and honestly would not buy anything else. however, the new Ipod nano 6g in my opinion was a little rushed. First of all i love the picture function that the Ipod has but i would like to see one of my own picture

  • BPM Workspace - Persistent column resizing & locking down Priority field

    Hello All, BPM version 11.1.1.7 1) In the BPM workspace, a user can resize the visible columns in the tasks list in the Inbox views or other views. However, as soon as the user navigates out and returns to the view , the layout gets resset. All the c