OpenLDAP and Solaris 10, I'm out of ideas

Hi All,
I have configured OpenLDAP sucessfully and set following results indicating that the user is loaded on the LDAP database
test5:/ $ cat /etc/passwd | grep admin777
test5:/ $ getent passwd admin777
admin777:x:5011:1000::/:/bin/bash
test5:/ $ id admin777
uid=5011(admin777) gid=1000(users) groups=1000(users)
test5:/ $ ldaplist -l passwd admin777
dn: uid=admin777,ou=People,dc=example,dc=com
shadowMin: 10
sn: sn
userPassword: {SSHA}Uy4yMkk71zNJ6XoAAhoKgjYPzXNnU4r5
loginShell: /bin/bash
uidNumber: 5011
gidNumber: 1000
shadowMax: 30
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: admin777
shadowLastChange: 15166
cn: cn
homeDirectory: /
shadowWarning: 7
test5:/ $
I've also added an overall security policy in the LDAP database
# Policies, example.com
dn: ou=Policies,dc=example,dc=com
pwdFailureCountInterval: 0
pwdMaxFailure: 3
pwdMustChange: TRUE
pwdAttribute: userPassword
pwdMinLength: 3
ou: Policies
pwdSafeModify: FALSE
pwdInHistory: 6
pwdGraceAuthNLimit: 0
pwdCheckQuality: 1
objectClass: top
objectClass: device
objectClass: pwdPolicy
pwdLockoutDuration: 1920
cn: default
pwdAllowUserChange: TRUE
pwdExpireWarning: 432000
pwdLockout: TRUE
pwdMaxAge: 7516800
But it seems that this policy is not activated, for example the pwdMinLength: is set to 3, but when the user changes his/her password, it seems that the Solaris policy takes over from the /etc/default/passwd file
test5:/ $ ssh [email protected]
* * * * * * * * * * * * W A R N I N G * * * * * * * * * * * * * *
THIS SYSTEM IS RESTRICTED TO AUTHORIZED USERS FOR AUTHORIZED USE
ONLY. UNAUTHORIZED ACCESS IS STRICTLY PROHIBITED AND MAY BE
PUNISHABLE UNDER THE COMPUTER FRAUD AND ABUSE ACT OR OTHER
APPLICABLE LAWS. IF NOT AUTHORIZED TO ACCESS THIS SYSTEM,
DISCONNECT NOW. BY CONTINUING, YOU CONSENT TO YOUR KEYSTROKES
AND DATA CONTENT BEING MONITORED. ALL PERSONS ARE HEREBY
NOTIFIED THAT THE USE OF THIS SYSTEM CONSTITUTES CONSENT
TO MONITORING AND AUDITING.
* * * * * * * * * * * * W A R N I N G * * * * * * * * * * * * *
Password:
Last login: Tue Jul 12 11:14:22 2011 from test5.example.
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
Sourcing //.profile-EIS.....
test5:/ $ id
uid=5011(admin777) gid=1000(users) groups=1000(users)
test5:/ $ passwd
passwd: Changing password for admin777
Enter existing login password:
New Password:
passwd: Password too short - must be at least 8 characters.
Please try again
New Password:
test5:/ $ cat /etc/default/passwd
#ident @(#)passwd.dfl 1.7 04/04/22 SMI
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
MAXWEEKS=13
MINWEEKS=
PASSLENGTH=8
# NAMECHECK enables/disables login name checking.
# The default is to do login name checking.
# Specifying a value of NO will disable login name checking.
NAMECHECK=YES
It seems that the Solaris password policy forces the user to use the Solaris policy and ignore the LDAP ppolicy, below is my slapd.conf file
test5:/ $ cat /usr/local/etc/openldap/slapd.conf
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/ppolicy.schema
include /usr/local/etc/openldap/schema/DUAConfigProfile.schema
include /usr/local/etc/openldap/schema/solaris.schema
include /usr/local/etc/openldap/schema/java.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
loglevel 256
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
# Load dynamic backend modules:
modulepath /usr/local/libexec/openldap
moduleload ppolicy.la
# modulepath /usr/local/libexec/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# BDB database definitions
database bdb
suffix "dc=example,dc=com"
checkpoint 32 30
cachesize 10000
rootdn "cn=Manager,dc=example,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw "{SSHA}6FWujVb4YNHJDyniwoWaHTMfXBJBM8u7"
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/var/openldap-data
# Indices to maintain
index objectClass eq
index uid,uidNumber,gidNumber,shadowExpire,shadowLastChange eq
overlay ppolicy
ppolicy_default "cn=default,ou=Policies,dc=example,dc=com"
ppolicy_use_lockout
Edited by: King Rat on 12-Jul-2011 02:20
Edited by: King Rat on 12-Jul-2011 02:21

Hi there are you still working on this?
I'm also working on this. My setup is a little differant and I'm a little behind. I installed OpenLDAP server is installed on RHEL 5.5 and it is working with all the Linux servers, but Solaris 10 is giving me trouble. I see your using the ppolicy.schema I have not see this before I have been told to use the solaris.schema and the DUAConfigProfile.schema. It looks like you are using it with a overlay is this needed?
This is what my user account looks like.
dn: uid=user00,ou=People,dc=test,dc=net
uid: user00
cn: user00
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {MD5}X03MO1qnZdYdgyfeuILPmQ==
shadowLastChange: 13048
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 600
gidNumber: 500
homeDirectory: /home/user00
gecos: user00
Can you post the command you used to setup the client.
Example:
ldapclient init -a profileName=profile -a domainName=test.net 10.0.0.2
I also have these items and ACLs in the slapd.conf file.
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
access to attrs=shadowLastChange,userPassword
by self write
by * auth
access to *
by * read
Anyway I hope this helps and if you could help me with the client setup that would be great.

Similar Messages

  • Openldap and solaris 10

    I'm trying to setup openldap 2.3.4 on Solaris 10. I've read the plethora of internet posting for Solaris 8 & 9 that claim to have a working ldap server, but little on Solaris 10. I've tried "everything" to get it work but to no avail. Can anyone point me to the minimum amount of documnets to get openldap working on Solaris 10.

    Don't forget to:
    1) add an nisDomainObject at the root DN
    dn: dc=example,dc=com
    objectclass: top
    objectclass: organization
    objectClass: nisDomainObject
    nisDomain: example.com
    objectclass: dcObject
    o: Example Companies
    dc: example
    2) Add ACL in slapd.conf to allow reading of rootDSE.
    access to dn.base="" by * read
    A typical example for ACLs is shown below (note: add spaces before all the "by" lines, as indication of line continuations.
    ===
    access to attrs=userPassword
    by self write
    by * auth
    access to dn.base=""
    by * read
    access to dn.base="cn=Subschema" by * read
    access to dn.subtree="ou=People,dc=example,dc=com"
    by self write
    by dn="cn=proxyagent,ou=profile,dc=example,dc=com" read
    by users read
    by anonymous auth
    access to * by self write
    by * read
    ===
    Also I would like to make a qualification:
    The "result.c" patch at
    http://web.singnet.com.sg/~garyttt/result_c_patch.txt
    IS MEANT for OpenLDAP version 2.2.XX, not 2.3.X, I haven't tried it on 2.3.X
    But if it works, by all mean.
    This patch existed since few years ago, but was never incorporated by OpenLDAP debvelopers, I am not sure if OpenLDAP developers will listen "in the name of InterOperability betwwen SUN and OpenLDAP products", and come out with an official patch in OpenLDAP 2.3.6 or later for rootDSE reading issue.
    Assuming you use OpenLDAP 2.2.26 the latest stable release for 2.2.XX, and apply the "result.c" patch, after that you should be able to verify that it works using the following commands, prior to running "ldapclient -v init ...".
    # cat chk_rootdse_openldap.sh
    LDAP_ROOT=/usr/local
    LD_LIBRARY_PATH=$LDAP_ROOT/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
    echo "Testing LDAP Master..."
    $LDAP_ROOT/bin/ldapsearch -h XXX.XXX.XXX.XXX -b "" -s base "(objectclass=*)" "+"
    or
    # cat chk_rootdse_solaris.sh
    LDAP_ROOT=/usr/iplanet/ds5
    LD_LIBRARY_PATH=$LDAP_ROOT/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
    echo "Testing LDAP Master..."
    $LDAP_ROOT/shared/bin/ldapsearch -h XXX.XXX.XXX.XXX -b "" -s base "(objectclass=*)" "+"
    HTH.
    Gary

  • Bootp through WLC 4400 - out of ideas

    We use several (80) wireless bootp devices in our network. They of course have been running great on autonomous APs but refuse to work on our WLC wlans. I did a packet capture on the vlan only to find that the wlc 4404 is retagging the bootp packet source as it's own IP instead of 0.0.0.0 This of course causes the bootp server to send out a bootp reply specifically to that IP instead of a broadcast (where I hope the WLC would behave normally since broadcast forwarding has been enabled).
    I'm running version 4.1.185.0 and the results are identical on our 4404 and 4402. I'm out of ideas guys any advice?
    proper.pdf shows the process on an autonomous AP at packet 1 and 5. Other packets show the same process through a WLC.
    .254 is the bootp server, .240 is WLC

    Okay, well if your DHCP Server doesn't like proxied requests, you've got three options;
    1 - Use a DHCP server that will accept proxied requests like a Cisco Switch, the WLC it's self, a Microsoft Server, etc...
    2 - Scrap lightweight and go back to IOS
    3 - Employ H-REAP, which will then bridge traffic straight on to a VLAN from the AP. This means it won't go via the WLC, and the requests will therefore go un-altered. H-REAP requires 1030, 1130, 1240 or 1250 APs, and the switchport to be altered to a Trunk port.
    Regards,
    Richard.

  • Problem with OpenLDAP and JNDI

    I'm having problem working with OpenLDAP and JNDI.
    First I have changed LDAP's slapd.conf file:
    suffix          "dc=antipodes,dc=com"
    rootdn          cn=Manager,dc=antipodes,dc=com
    directory     "C:/Program Files/OpenLDAP/data"
    rootpw          secret
    schemacheck offthan i used code below, to create root context:
    package test;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameAlreadyBoundException;
    import javax.naming.directory.*;
    import java.util.*;
    public class MakeRoot {
         final static String ldapServerName = "localhost";
         final static String rootdn = "cn=Manager,dc=antipodes,dc=com";
         final static String rootpass = "secret";
         final static String rootContext = "dc=antipodes,dc=com";
         public static void main( String[] args ) {
                   // set up environment to access the server
                   Properties env = new Properties();
                   env.put( Context.INITIAL_CONTEXT_FACTORY,
                              "com.sun.jndi.ldap.LdapCtxFactory" );
                   env.put( Context.PROVIDER_URL, "ldap://" + ldapServerName + "/" );
                   env.put( Context.SECURITY_PRINCIPAL, rootdn );
                   env.put( Context.SECURITY_CREDENTIALS, rootpass );
                   try {
                             // obtain initial directory context using the environment
                             DirContext ctx = new InitialDirContext( env );
                             // now, create the root context, which is just a subcontext
                             // of this initial directory context.
                             ctx.createSubcontext( rootContext );
                   } catch ( NameAlreadyBoundException nabe ) {
                             System.err.println( rootContext + " has already been bound!" );
                   } catch ( Exception e ) {
                             System.err.println( e );
    }this worked fine, I could see that by using "LDAP Browser/Editor".
    and then I tried to create group with code:
    package test;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    public class MakeGroup
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String ldapURL = "ldap://127.0.0.1:389";
              String groupName = "CN=Evolution,OU=Research,DC=antipodes,DC=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL,ldapURL);
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new group
                        Attributes attrs = new BasicAttributes(true);
                   attrs.put("objectClass","group");
                   attrs.put("samAccountName","Evolution");
                   attrs.put("cn","Evolution");
                   attrs.put("description","Evolutionary Theorists");
                   //group types from IAds.h
                   int ADS_GROUP_TYPE_GLOBAL_GROUP = 0x0002;
                   int ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 0x0004;
                   int ADS_GROUP_TYPE_LOCAL_GROUP = 0x0004;
                   int ADS_GROUP_TYPE_UNIVERSAL_GROUP = 0x0008;
                   int ADS_GROUP_TYPE_SECURITY_ENABLED = 0x80000000;
                   attrs.put("groupType",Integer.toString(ADS_GROUP_TYPE_UNIVERSAL_GROUP + ADS_GROUP_TYPE_SECURITY_ENABLED));
                   // Create the context
                   Context result = ctx.createSubcontext(groupName, attrs);
                   System.out.println("Created group: " + groupName);
                   ctx.close();
              catch (NamingException e) {
                   System.err.println("Problem creating group: " + e);
    }got the error code: Problem creating group: javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - groupType: attribute type undefined]; remaining name 'CN=Evolution,OU=Research,DC=antipodes,DC=com'
    I tried by creating organizational unit "ou=Research" from "LDAP Browser/Editor", and then running the same code -> same error.
    also I have tried code for adding users:
    package test;
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class MakeUser
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String userName = "cn=Albert Einstein,ou=Research,dc=antipodes,dc=com";
              String groupName = "cn=All Research,ou=Research,dc=antipodes,dc=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, "ldap://127.0.0.1:389");
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new user
                        Attributes attrs = new BasicAttributes(true);
                   //These are the mandatory attributes for a user object
                   //Note that Win2K3 will automagically create a random
                   //samAccountName if it is not present. (Win2K does not)
                   attrs.put("objectClass","user");
                        attrs.put("samAccountName","AlbertE");
                   attrs.put("cn","Albert Einstein");
                   //These are some optional (but useful) attributes
                   attrs.put("giveName","Albert");
                   attrs.put("sn","Einstein");
                   attrs.put("displayName","Albert Einstein");
                   attrs.put("description","Research Scientist");
                        attrs.put("userPrincipalName","[email protected]");
                        attrs.put("mail","[email protected]");
                   attrs.put("telephoneNumber","999 123 4567");
                   //some useful constants from lmaccess.h
                   int UF_ACCOUNTDISABLE = 0x0002;
                   int UF_PASSWD_NOTREQD = 0x0020;
                   int UF_PASSWD_CANT_CHANGE = 0x0040;
                   int UF_NORMAL_ACCOUNT = 0x0200;
                   int UF_DONT_EXPIRE_PASSWD = 0x10000;
                   int UF_PASSWORD_EXPIRED = 0x800000;
                   //Note that you need to create the user object before you can
                   //set the password. Therefore as the user is created with no
                   //password, user AccountControl must be set to the following
                   //otherwise the Win2K3 password filter will return error 53
                   //unwilling to perform.
                        attrs.put("userAccountControl",Integer.toString(UF_NORMAL_ACCOUNT + UF_PASSWD_NOTREQD + UF_PASSWORD_EXPIRED+ UF_ACCOUNTDISABLE));
                   // Create the context
                   Context result = ctx.createSubcontext(userName, attrs);
                   System.out.println("Created disabled account for: " + userName);
                   //now that we've created the user object, we can set the
                   //password and change the userAccountControl
                   //and because password can only be set using SSL/TLS
                   //lets use StartTLS
                   StartTlsResponse tls = (StartTlsResponse)ctx.extendedOperation(new StartTlsRequest());
                   tls.negotiate();
                   //set password is a ldap modfy operation
                   //and we'll update the userAccountControl
                   //enabling the acount and force the user to update ther password
                   //the first time they login
                   ModificationItem[] mods = new ModificationItem[2];
                   //Replace the "unicdodePwd" attribute with a new value
                   //Password must be both Unicode and a quoted string
                   String newQuotedPassword = "\"Password2000\"";
                   byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
                   mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("unicodePwd", newUnicodePassword));
                   mods[1] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("userAccountControl",Integer.toString(UF_NORMAL_ACCOUNT + UF_PASSWORD_EXPIRED)));
                   // Perform the update
                   ctx.modifyAttributes(userName, mods);
                   System.out.println("Set password & updated userccountControl");
                   //now add the user to a group.
                        try     {
                             ModificationItem member[] = new ModificationItem[1];
                             member[0]= new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("member", userName));
                             ctx.modifyAttributes(groupName,member);
                             System.out.println("Added user to group: " + groupName);
                        catch (NamingException e) {
                              System.err.println("Problem adding user to group: " + e);
                   //Could have put tls.close()  prior to the group modification
                   //but it seems to screw up the connection  or context ?
                   tls.close();
                   ctx.close();
                   System.out.println("Successfully created User: " + userName);
              catch (NamingException e) {
                   System.err.println("Problem creating object: " + e);
              catch (IOException e) {
                   System.err.println("Problem creating object: " + e);               }
    }same error.
    I haven't done any chages to any schema manually.
    I know I'm missing something crucial but have no idea what. I have tried many other code from tutorials from net, but they are all very similar and throwing the same error I showed above.
    thanks in advance for help.

    I've solved this.
    The problem was that all codes were using classes from Microsoft Active Directory, and they are not supported in OpenLDAP (microsoft.schema in OpenLDAP is just for info). Due to this some fields are not the same in equivalent classes ("user" and "person").
    so partial code for creating user in root would be:
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class MakeUser
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String userName = "cn=Albert Einstein,ou=newgroup,dc=antipodes,dc=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, "ldap://127.0.0.1:389");
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new user
                        Attributes attrs = new BasicAttributes(true);
                                  attrs.put("objectClass","user");
                   attrs.put("cn","Albert Einstein");
                   attrs.put("userPassword","Nale");
                   attrs.put("sn","Einstein");
                   attrs.put("description","Research Scientist");
                   attrs.put("telephoneNumber","999 123 4567");
                   // Create the context
                   Context result = ctx.createSubcontext(userName, attrs);
                   System.out.println("Successfully created User: " + userName);
              catch (NamingException e) {
                   System.err.println("Problem creating object: " + e);
    }hope this will help anyone.

  • Dual Booting Windows and Solaris

    Hi
    how do i dual boot windows and solaris
    Do i install windows first and then solaris or do it the other way around..?
    how do i make sure that Windows and Solaris appear in my boot options..?
    Is their a guide on doing this...?
    Thanks
    Liam

    Hey I did a quick google search for you. So I havent tried this method myself but it sounds reasonable.
    The text below is from the following link:
    http://www.hccfl.edu/pollock/AUnix1/DualBoot.htm
    "Solaris boot loader
    Partition the drive to leave at least 2GB of space available for Solaris;
    more drive space is desirable.
    As with Linux, install Windows first then Solaris.
    Do not use the Installation CD but boot and install
    from Software CD 1.
    If you accept the default partitioning scheme which
    the installer provides you will soon run out of space in
    your / and /usr partitions since only enough space is
    allocated to install the system.
    All extra space is allocated to /export/home.
    A typical installation on a 4.5GB partition might look
    something like this:
    Filesystem Size Used Avail Use% Mounted on
    /dev/dsk/c0d0s0 900M 536M 310M 64% /
    /dev/dsk/c0d0s1 334M 109M 192M 36% /var
    swap 671M 8.0k 671M 1% /var/run
    swap 671M 8.0k 671M 1% /tmp
    /dev/dsk/c0d0s5 845M 222M 565M 29% /opt
    # (FAT32 partition):
    /dev/dsk/c0d0p0:1 5.0G 3.3G 1.6G 66% /c
    /dev/dsk/c0d0s7 1.1G 92M 954M 9% /export/home
    /dev/dsk/c0d0s4 752M 225M 474M 33% /usr/local
    The Solaris boot selector enables you to choose either
    Solaris or Windows with Solaris as the default.
    (I prefer grub or lilo!)
    To mount FAT under Solaris:
    # mount -F pcfs /dev/dsk/c0d0p0:c /dos (or �:1�?)
    And the vfstab file:
    /dev/dsk/c0d0p0:c - /dos pcfs - yes -
    To create a GRUB boot floppy, follow these steps:
    $ mkfs -t ext2 /dev/fd0
    $ mount /dev/fd0 /mnt/fd0
    $ mkdir /mnt/fd0/boot /mnt/fd0/boot/grub
    $ cp /boot/grub/stage[12] /boot/grub/grub.conf \
    > /mnt/fd0/boot/grub
    $ /sbin/grub --batch <
    Hope this helps!
    /Oscar

  • Running Solaris 8 and Solaris 10 on a SPARC box at the same time

    I know that this is not possible, but still... need to clear it out from the experts...
    Have a upgrade request of Solaris 8 to Solaris 10. However, Solaris 8 environment should not be disturbed. How can this be done without going for another SPARC box?
    Can I have both Solaris 8 and Solaris 10 running concurrently on the same SPARC box?
    Thanks in advance.

    Have a upgrade request of Solaris 8 to Solaris 10.
    However, Solaris 8 environment should not be
    disturbed. How can this be done without going for
    another SPARC box?
    Can I have both Solaris 8 and Solaris 10 running
    concurrently on the same SPARC box?You can add a second boot disk and use Sun's Live Update to install the upgrade on the second boot disk. Boot from either, though you can't run both simultaneously.

  • How to restart services in windows and solaris environment?

    I need to start services running in windows and solaris platforms with java code. I have a fair idea how to do in C++ . So wondering if same can be done with java. .. Please help me out!
    Thanx

    you may also like to look at the wrapper project on source forge. It lets you set up services under any O/S with full control of the JVM that is running.
    Btw my previous answer only helps you under MS, didn't notice that you wished to know how to do it under unix. If its a non-java service, you will need to determine what platform your on and then perform the appropriate action.

  • Resource Management and Solaris Zones Developer Guide

    Solaris Information Products ("Pubs") is creating a
    developer guide for resource management and Solaris Zones.
    The department is seeking input on content from application
    developers and ISVs.
    We plan to discuss the different categories of applications
    that can take advantage of Solaris resource management
    features, and provide implementation examples that discuss
    the particular RM features that can be used.
    Although running in a zone poses no differences to most
    applications, we will describe any possible limitations and
    offer appropriate workarounds. We will also provide
    information needed by the ISV, such as determining
    the appropriate system calls to use in a non-global zone.
    We plan to use case studies to document the zones material.
    We would like to know the sorts of topics that you would
    like to see covered. We want to be sure that we address
    your specific development concerns with regard to these
    features.
    Thank you for your comments and suggestions.

    Hi there, i'm using solaris resource management in a
    server with more thant 2thousand acounts.
    Created profiles for users, defaul, staff, root and
    services.Seeing the contents of your /etc/project file could be helpful.
    But while using rctladm to enable syslog'ing, I set up
    global flags of "deny" and "no-local-action" in almos
    everything.The flags on the right hand side of the rctladm(1M) output are read-only:
    they are telling you the characteristics of the resource control in question (what
    operations the system will allow the resource control to take).
    Now, many aplications don't work because they are
    denied enough process.max-stack-size and
    process.max-file-descriptor for them to work.
    Applications such has prstat.If prstat(1) is failing due to the process.max-file-descriptor control value, that's
    probably a bug. prstat(1) is more likely bumping into the limit to assess how many file
    descriptors are available, and then carrying on--you're just seeing a log message since
    prstat(1) tested the file descriptor limit, and you've enabled syslog for that control. Please
    post the prstat(1) output, and we'll figure out if something's breaking.
    I don't find a way to disable the global flags. You can't. I would disable the syslog action on the process.max-stack-size control first;
    there is an outstanding bug on this control, in that it will report a false triggering event--
    no actual effect to the process. (If you send me some mail, I will add you as a call record
    on the bug.)
    Can anyone tell me:
    how to disable global flags?
    how to disable and enable solaris resource management
    all together?You could raise all of the control values, but the resource control facility (like the resource
    limit facility it superseded) is always active. Let's figure out if you're hitting the bug I mentioned,
    and then figure out how to proceed.
    - Stephen
    Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems
    [email protected]

  • Release Date of EM Grid Control 10.2 for HP-UX and Solaris?

    Hello,
    does anybody know the estimated release date of EM Grid Control 10.2 for HP-UX and Solaris?
    Regards,
    Martin

    We are also very curious about that here. If anyone has any information or estimates it would be much appreciated.
    We've ran into the following problem:
    Note 338123.1 After Upgrading Catalog Database to 10.2 Cannot Use RMAN Catalog With 10.1 Grid Control
    And have been told we have the following options:
    Workarounds available:
    1. Use dbcontrol for the 10.2 database to maintain the recovery catalog until 10.2 Grid Control is available
    2. Use the RMAN command line utility
    3. Use the 10.2 Management Agent when available.
    Which basically means we are out of luck on OEM RMAN until 10.2, and hope to hear it may be available in the near future.

  • IAS6.0 SP3 and Solaris 9

    Help!
    We have an install of iAS6 SP3 running on Solaris 9 and am having serious server failures. After loading anywhere between 30 and 40 jsp pages, the server "white screens", (refuses to render anything) and in the kjs logs reports an "nullpointer exception" and a failure when "writing or refreshing JSP Page url".
    "Exception writing or refreshing JSP page /jsp/deployed/CreateIssuePost.jsp: java.lang.NullPointerException"
    It then dies in quite a big way requiring a restart. There is no significant load on the server (1x developer), it has plenty of capacity on swap and memory, and I've set the file descriptor limit to about max (65k). There seems to be a failure between the server and the ldap server just before it all goes pear shaped with an error 91 (failure to connect) occuring.
    I'm completely out of ideas and hope someone has come across this one! Any help appreciated!
    Dave

    Just a vague idea,
    please ensure that the Object reference to any object used in the CreateIssuePost.jsp is valid and exists. If every thing is correct, please send the kjs logs.

  • Qt QMake is missing - Solaris 11 and Solaris Studio 12.3

    OS: Oracle Solaris 11 - http://www.oracle.com/technetwork/server-storage/solaris11/overview/index.html
    Development tools: Solaris Studio 12.3 - http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html
    Hi, I want to make Qt desktop applications for Oracle Solaris 11, and Solaris Studio supports Qt projects. However the binary QMake is missing.
    Is it available somewhere?
    Thank you a lot.
    Edited by: 909513 on Jan 22, 2012 6:05 PM
    Edited by: 909513 on Jan 22, 2012 6:06 PM

    Here's what I used to compile up (I think) 90%+ of Qt 4.8.4. The configure step creates qmake and the compile rolls along until it hits a lot of non standard C++ code. But you get qmake out of it. The tarball is the latest snapshot of the 4.8.x git tree.
    Caveat: It's being built using Sun Studio 12.3 and the stdcxx library from my package site, along with a bunch of dependant packages from there. I never got Qt 4.8.4 to finish compiling with webkit, the 3rdparty/javascriptcore/JavaScriptCore/* files are truly awful non compliant code and error out every step of the compile. Sigh.
    Good luck
    ================================================================================
    qt 4.8.2013.06.24
        https://qt.gitorious.org/qt/qt/trees/4.8
        Compile stdcxx 4.2.1    Done
        Compile dbus 1.7.2      Done
        Compile libmng 1.0.10   Skipped
        setenv CC "cc"
        setenv CXX "CC"
    or
        setenv CC "cc -xtarget=ultra -m64 -xcode=pic32"
        setenv CXX "CC -xtarget=ultra -m64 -xcode=pic32"
        setenv LDFLAGS "-L/usr/local/lib -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4"
        setenv CFLAGS "-I/usr/local/include -DUSE_SYSTEM_MALLOC"
        setenv CXXFLAGS "-I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4 -DUSE_SYSTEM_MALLOC"
        setenv LINK "${CXX} -I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4"
        setenv AR "${CXX} -I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4 -xar -o"
        setenv CC "${CC} ${CFLAGS}"
        setenv CXX "${CXX} ${CXXFLAGS}"
        cd /var/tmp
        rm -rf qt-qt
        gunzip -c /usr/local/src/graphics/qt-4.8.2013.06.24.tar.gz | gtar -xvf -
        cd qt-qt
        /bin/perl -pe 's#/bin/sh#/bin/bash#'                              -i configure
        /bin/perl -pe 's#OPT_CONFIRM_LICENSE=no#OPT_CONFIRM_LICENSE=yes#' -i configure
        /bin/perl -pe 's#^QMAKE_INCDIR\s+=.*#QMAKE_INCDIR=/usr/local/include#'         -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_LIBDIR\s+=.*#QMAKE_LIBDIR=/usr/local/lib#'             -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_INCDIR_X11\s+=.*#QMAKE_INCDIR_X11=/usr/local/include#' -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_LIBDIR_X11\s+=.*#QMAKE_LIBDIR_X11=/usr/local/lib#'     -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_CC\s+=.*#QMAKE_CC=${CC}#"                              -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_CXX\s+=.*#QMAKE_CXX=${CXX}#"                           -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_LINK\s+=.*#QMAKE_LINK=${LINK}#"                        -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_LINK_SHLIB\s+=.*#QMAKE_LINK_SHLIB=${LINK}#"            -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_AR\s+=.*#QMAKE_AR=${AR} #"                             -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#canBuildWebKit=\"no\"#canBuildWebKit=\"yes\"#'                -i configure
        /bin/perl -pe 's#canBuildQtConcurrent=\"no\"#canBuildQtConcurrent=\"yes\"#'    -i configure
    ./configure -prefix /usr/local \
    -qpa xcb \
    -release \
    -opensource \
    -shared \
    -no-fast \
    -largefile \
    -no-system-proxies \
    -exceptions \
    -accessibility \
    -stl \
    -qt-sql-sqlite \
    -system-sqlite \
    -no-qt3support \
    -xmlpatterns \
    -multimedia \
    -audio-backend \
    -no-phonon \
    -phonon-backend \
    -svg \
    -webkit \
    -x11 \
    -no-javascript-jit \
    -script \
    -no-scripttools \
    -declarative \
    -platform solaris-cc \
    -no-mmx \
    -no-3dnow \
    -no-sse \
    -no-sse2 \
    -no-sse3 \
    -no-sse4.1 \
    -no-sse4.2 \
    -no-avx \
    -no-neon \
    -system-zlib \
    -system-libtiff \
    -system-libpng \
    -no-libmng \
    -system-libjpeg \
    -openssl \
    -nomake tests \
    -R /usr/local/lib \
    -I /usr/local/include \
    -L /usr/local/lib \
    -verbose \
    -no-cups \
    -iconv \
    -no-gtkstyle \
    -no-nas-sound \
    -sm \
    -xshape \
    -no-xvideo \
    -xsync \
    -xinerama \
    -xcursor \
    -xfixes \
    -no-xrandr \
    -xrender \
    -mitshm \
    -fontconfig \
    -no-xinput \
    -xkb \
    -no-glib \
    -confirm-license \
    -system-freetype
        foreach file (3rdparty/javascriptcore/JavaScriptCore/runtime/* 3rdparty/javascriptcore/JavaScriptCore/runtime/* 3rdparty/javascriptcore/JavaScriptCore/API/*)
            perl -pe 's#ENABLE\(GLIB_SUPPORT\)#0#' -i $file
            perl -pe 's#OS\(DARWIN\)#0#' -i $file
            perl -pe 's#OS\(WINCE\)#0#' -i $file
            perl -pe 's#OS\(WINDOWS\)#0#' -i $file
            perl -pe 's#OS\(SYMBIAN\)#0#' -i $file
            perl -pe 's#OS\(OPENBSD\)#0#' -i $file
            perl -pe 's#OS\(QNX\)#0#' -i $file
            perl -pe 's#OS\(ANDROID\)#0#' -i $file
            perl -pe 's#OS\(RVCT\)#0#' -i $file
            perl -pe 's#OS\(FREEBSD\)#0#' -i $file
            perl -pe 's#OS\(HAIKU\)#0#' -i $file
            perl -pe 's#OS\(NETBSD\)#0#' -i $file
            perl -pe 's#OS\(MAC_OS_X\)#0#' -i $file
            perl -pe 's#OS\(IOS\)#0#' -i $file
            perl -pe 's#OS\(AIX\)#0#' -i $file
            perl -pe 's#OS\(LINUX\)#0#' -i $file
            perl -pe 's#OS\(UNIX\)#1#' -i $file
            perl -pe 's#OS\(SOLARIS\)#1#' -i $file
            perl -pe 's#PLATFORM\(BREWMP\)#0#' -i $file
            perl -pe 's#PLATFORM\(MAC\)#0#' -i $file
            perl -pe 's#PLATFORM\(WIN\)#0#' -i $file
            perl -pe 's#PLATFORM\(CHROMIUM\)#0#' -i $file
            perl -pe 's#PLATFORM\(WX\)#0#' -i $file
            perl -pe 's#PLATFORM\(GTK\)#0#' -i $file
            perl -pe 's#COMPILER\(MSVC\)#0#' -i $file
            perl -pe 's#COMPILER\(MINGW\)#0#' -i $file
            perl -pe 's#COMPILER\(GCC\)#0#' -i $file
        end
        perl -pe '($. == 28) && s/^/#include "DateConversion.h"\n#include "DateInstance.h"/' -i 3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstanceCache.h
        foreach file (3rdparty/javascriptcore/JavaScriptCore/runtime/*)
            perl -pe 's#JS_EXPORTDATA#__declspec(dllexport)#' -i $file
        end
        gmake
    If you get this far you'll hit the dodgy code, but you'll have a qmake binary made. You can remove the -webkit option and it'll actually build qt I believe, but alas I need webkit
    ta,
    Mark

  • I have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    i have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    Maybe it is in the Purchased category of iTunes,
    Try going there

  • I have a macbook pro, and am trying to update my software. I recently bought an iphone 5, and my software is to out of date to sync my phone with itunes. I currently am running 10.5.8 and I need to update to atleast 10.6.8. Just wondering if I need to pur

    I have a macbook pro, and am trying to update my software. I recently bought an iphone 5, and my software is to out of date to sync my phone with itunes. I currently am running 10.5.8 and I need to update to atleast 10.6.8. Just wondering if I need to purchase it from apple or if there is an easy/free way to update it.

    you need to purchase it: http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard.  It is only on a disk, not in download form.

  • Get and Put options are greyed out in DW CS4

    I am a fairly green Dreamweaver user, and recently (finally) upgraded from MX4 to CS4.  I am trying to get a file from my local c:drive and both the get and put functions are greyed out.  Any idea how to enable these functions?  I do not have the file that I wish to transfer open.

    When you say you are trying to get a file from your local c:drive, dio you mean that you are trying to import a file into your site from elsewhere on your computer, rather than 'getting' it from your remote server.  If you are trying to import a file from your local c:drive don't use the 'get' or 'put' buttons because they are just for remote connections, instead just use windows explorer to locate the file then either copy or cut and paste the file into the folder for your site.
    Richard

  • Jabber for Windows and Unity Connection Voice mail out of sync

    Hello all,
    Now that Jabber is pretty much part of every install you begin to notice some trends. One trend that I have noticed happening across several of customers is complaints about Jabber and the Voicemail server getting out of sync. It’s never really been a wide spread issue but it has be noticed by several of my customers enough so that I’m reaching out to see if others are experiencing the same problem. Here are the symptoms, a person sitting at their desk they have a physical phone, and a windows PC running Jabber 4 Windows. They miss a call and the MWI lamp gets lit on the phone but not on Jabber. When you click on HELP / Show Connection status, you see all green checks, and Voicemail shows connected from Jabbers standpoint. When you exit the application and come back in, then it sync’s back up just fine. I have never seen it happen myself, but to be honest I’m never at my desk enough to even notice if my phone lamp is lit.
    Anyway has anyone had similar issues? If so is there a fix?

    Symptom:
    User logged in Jabber and do not log-off/sign-out for more than 24 hours and then jabber does not receive new voicemails from Unity Connection. User will be able to receive voicemails from other interfaces like Outlook, TUI but voicemails will not show up in Jabber.
    Conditions:
    User does not sign out from jabber for more than 24 hours since last log on.
    Workaround:
    Sign out from jabber at-least once a day and sign-in back so that subscription will not expire in Unity Connection database.
    Voicemail does not sync if Jabber left logged in for more than 24 hours
    CSCuo46274
    Can be fixed, depends on releases, TAC offered me a fix in version 10.5(1)ES29

Maybe you are looking for