Most of the time, the folks who ask me questions already have gone through sufficient documentation and trial runs, but yet there exists a reluctance in performing the upgrade without a approval signoff from an architect.
Please read the updates at the bottom of this post.
So: to make everybodys life easier, i thought of posting a blog on the as close as possible steps that would be required to perform this upgrade.
Unless one has a humongous NIS / NIS+ infrastructure, the steps in this post
So, fun aside. here goes...
This blog post is a high level draft of options that one could use to enable native ldap authentication... This may not be 100% accurate, but if and when yu try this out and find out something thats different from whats listed here, please do comment on it...
The term user information is not restricted to a users entry containing just his username and password, but rather extended to also contain pertinent information for the LDAP store to serve as a naming services server in conjunction with extenstions to use the data as a authentication source for web applications.
Native LDAP:
Any naming system should only have one source of authoritative information. Current naming Services Environments usually use DNS, which uses flatfiles as sources. Under LDAP, the source of authoritative data is the directory, and it is managed using directory management tools. FlatFile sources could be retained for emergency backup or backout only, and they generally should not be used.
This post/blog is a superset of the information contained in the chapter "Naming and Directory Services (DNS, NIS, and LDAP)" of the System Administration Guide (found on the Sun Product Documentation site: http://docs.sun.com). The former presents a relatively simple “cookbook” approach for first time users. This post contains technical detail for the more advanced user. My plan is to make additions to this post or post more updates as new deployment techniques are discovered.
This Document describes ONLY the following structure. NOTE:What are a VLV-indexes and why do we need these?
Client Setup: # getent passwd [user id]
test4::1005:1:this is a test user:/export/home/test4:/bin/csh
The nisdomain value that the client looks for is the name listed in the /etc/defaultdomain file, or one supplied with the -d argument to the ldapclient command.
The steps that the ldapclient command perform are:
Client searches on the naming service database default to ou=people, ou=group, etc. based on the SolarisSearchBaseDN variable set in the LDAP client profile. However, different search bases can be specified for different databases. You can specify these by overriding the defaults in the profile. To override a default, use the -B option of the ldap_gen_profile command. For example:
In this example, the passwd database is accessed from an alternative path. If user account information is shared with applications other than Solaris OE clients, you should separate the People container from the rest of the naming service databases.
NOTE: The Solaris9 Server with the SunONE Directory Server 5.2 can be a client to itself. In order to have the Solaris9 Server (Naming Services Host) to be a client to itself, please rerun the instructions for Client Setup on the naming Services Host (Solaris9 Server with Directory Server5.2).
Reboot the naming Sevices Host after configuring it to be a client to itself.
NOTE: Solaris 9 includes a copy of the Sun Management Console 2.1 with support for LDAP Directory Server provisioning. SMC is rather complex, however, and attempting to provision LDAP users is an exercise in frustration. I have got to the point where I can begin to add LDAP users and groups, but there is no communication to the Directory Server and log entries are very cryptic.
Useful References:
WHEW !!!. I'm poofed for now. Shall post another addendum to this sometime soon...
For details on the Usage and Guidelines Please refer to http://www.ietf.org/rfc/rfc2307.txt
Server Setup:
These indexes are used (and needed) to improve performance when browsing through large tables that contain many objects. i.e. when an enduser on a LDAP-client issues the command "getent hosts", all entries in of ou=Hosts,dc=yourcompany,dc=com become read from the LDAP-server. If a VLV-index for the Hosts-table does exist, the LDAP-client will receive the response very quickly. Please see "Section 10 Managing Indexes in the IDS 5.1 Administrator's Guide" to find further information
ldapsearch -b cn=schema objectclass=* | grep nisDomainObject
objectClasses=( 1.3.6.1.1.1.2.15 NAME 'nisDomainObject' SUP top STRUCTURAL MUST nisDomain X-ORIGIN 'user defined' )
Initialize the Solaris8 Client on the box using:
When the client is initialized, an IP address of one or more LDAP servers and a search base is specified. This information can be specified as a command line argument to the ldapclient command, or in a profile generated by the ldap_gen_profile command. The preferred method is to generate a profile with the ldap_gen_profile command. The search base that is set in the profile is determined by how the tree is set up.
#Use LDAP in conjunction with files
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
This value should be changed to dns ldap if the intention is to use dns for name resolutions and hostnames
# for efficient getservbyname() avoid ldap
A key point here is that the search for the profile entry will start directly below the entry containing the nisDomainObject with the matching nisdomain value. Another important point is that you only want to have one entry with the same nisdomain value in the directory server. The search will stop at the first match and fail if it cannot find the specified profile which is expected to be directly below the entry with nisDomainObject.
ldap_gen_profile -P altpasswd -b o=nismaps,dc=yourcompany,dc=com -B “passwd: (ou=people,dc=yourcompany,dc=com)” -D cn=proxyagent,ou=profile,dc=yourcompany,dc=com -w [password] 127.0.0.1
UPDATE 1 : There has been no announcement made that nis would be EOL'd. I stand corrected.
UPDATE 2 : My colleague Michael Haines pointed out a few inaccuracies in this post. I would like to add that for detailed usage and guidelines, you would need to refer to http://www.ietf.org/rfc/rfc2307.txt and http://www.padl.com/~lukeh/rfc2307bis.txt. There also seems to be some in accuracies in the ldapaddent section. I shall ammend that as soon as i find out the specifics of the inacuracies.
there are some parts of your post that have a strikethrough in between lines and some text missing, I guess it's page formatting of tags that you used in your post that were over ridden by the normal HTMl stuff...
Would be nice if that could be ammended.
greg
Posted by Greg novokolsky on May 10, 2005 at 12:09 AM EDT #
Thanks for pointing that out.. I have fixed it to an extent.. if you see further discrepancies, please let me know
BTW: How was your holiday to Amerterdam ?? Did U get a chance to do the "wild" thing/'s Amsterdam is so famous for ?
Rohan
Posted by Rohan Pinto on May 10, 2005 at 12:34 AM EDT #
Posted by silly_sad on March 21, 2007 at 10:46 AM EDT #
Hi! 2009 new Timberland Boots(http://www.timberlandsale.co.uk) are hot in selling! Come to our online Timberland Boots(http://www.timberlandoutdoor.com) and Timberland Shoes(http://www.thetimberland.co.uk) store, you will find Timberland Shoes(http://www.timberlandbootonline.com) are precisely you are longing for even in dreams.
Posted by Helen Lee on September 17, 2009 at 03:47 AM EDT #
buy cheap nokia n95 experience without nokia mobile learning is better than learning without excperi-ence. I have nokia 6300 but one lamp wait which my feet are guided; and that bose headphones is the lamp of experience. I know of no way of judging of the future but by the apple touch past. http://www.leadsoftstore.com/
Posted by GHD Straighteners on September 22, 2009 at 09:54 AM EDT #
You can't step twice into the same cheap ugg boots river, for other ugg classic cardy waters are continually flowing in. In the ugg bailey button long run men hit only what they aim at ugg australia. High expectations are the key to every ugg classic mini thing. If you wait, all that happens is that you get older. http://www.ladiesugg.com/
Posted by Cheap Ugg Boots on October 09, 2009 at 08:22 AM EDT #
It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.
Posted by links of london on October 20, 2009 at 02:52 AM EDT #