sync 3_0 branch with HEAD
[samba.git] / docs / htmldocs / winbind.html
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Unified Logons between Windows NT and UNIX using Winbind</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.57"></HEAD
8 ><BODY
9 CLASS="ARTICLE"
10 BGCOLOR="#FFFFFF"
11 TEXT="#000000"
12 LINK="#0000FF"
13 VLINK="#840084"
14 ALINK="#0000FF"
15 ><DIV
16 CLASS="ARTICLE"
17 ><DIV
18 CLASS="TITLEPAGE"
19 ><H1
20 CLASS="TITLE"
21 ><A
22 NAME="WINBIND"
23 >Unified Logons between Windows NT and UNIX using Winbind</A
24 ></H1
25 ><HR></DIV
26 ><DIV
27 CLASS="SECT1"
28 ><H1
29 CLASS="SECT1"
30 ><A
31 NAME="AEN3"
32 >Abstract</A
33 ></H1
34 ><P
35 >Integration of UNIX and Microsoft Windows NT through 
36         a unified logon has been considered a "holy grail" in heterogeneous 
37         computing environments for a long time. We present 
38         <I
39 CLASS="EMPHASIS"
40 >winbind</I
41 >, a component of the Samba suite 
42         of programs as a solution to the unified logon problem. Winbind 
43         uses a UNIX implementation 
44         of Microsoft RPC calls, Pluggable Authentication Modules, and the Name 
45         Service Switch to allow Windows NT domain users to appear and operate 
46         as UNIX users on a UNIX machine. This paper describes the winbind 
47         system, explaining the functionality it provides, how it is configured, 
48         and how it works internally.</P
49 ></DIV
50 ><DIV
51 CLASS="SECT1"
52 ><HR><H1
53 CLASS="SECT1"
54 ><A
55 NAME="AEN7"
56 >Introduction</A
57 ></H1
58 ><P
59 >It is well known that UNIX and Microsoft Windows NT have 
60         different models for representing user and group information and 
61         use different technologies for implementing them. This fact has 
62         made it difficult to integrate the two systems in a satisfactory 
63         manner.</P
64 ><P
65 >One common solution in use today has been to create 
66         identically named user accounts on both the UNIX and Windows systems 
67         and use the Samba suite of programs to provide file and print services 
68         between the two. This solution is far from perfect however, as 
69         adding and deleting users on both sets of machines becomes a chore 
70         and two sets of passwords are required both of which
71         can lead to synchronization problems between the UNIX and Windows 
72         systems and confusion for users.</P
73 ><P
74 >We divide the unified logon problem for UNIX machines into 
75         three smaller problems:</P
76 ><P
77 ></P
78 ><UL
79 ><LI
80 ><P
81 >Obtaining Windows NT user and group information
82                 </P
83 ></LI
84 ><LI
85 ><P
86 >Authenticating Windows NT users
87                 </P
88 ></LI
89 ><LI
90 ><P
91 >Password changing for Windows NT users
92                 </P
93 ></LI
94 ></UL
95 ><P
96 >Ideally, a prospective solution to the unified logon problem 
97         would satisfy all the above components without duplication of 
98         information on the UNIX machines and without creating additional 
99         tasks for the system administrator when maintaining users and 
100         groups on either system. The winbind system provides a simple 
101         and elegant solution to all three components of the unified logon 
102         problem.</P
103 ></DIV
104 ><DIV
105 CLASS="SECT1"
106 ><HR><H1
107 CLASS="SECT1"
108 ><A
109 NAME="AEN20"
110 >What Winbind Provides</A
111 ></H1
112 ><P
113 >Winbind unifies UNIX and Windows NT account management by 
114         allowing a UNIX box to become a full member of a NT domain. Once 
115         this is done the UNIX box will see NT users and groups as if 
116         they were native UNIX users and groups, allowing the NT domain 
117         to be used in much the same manner that NIS+ is used within 
118         UNIX-only environments.</P
119 ><P
120 >The end result is that whenever any 
121         program on the UNIX machine asks the operating system to lookup 
122         a user or group name, the query will be resolved by asking the 
123         NT domain controller for the specified domain to do the lookup.
124         Because Winbind hooks into the operating system at a low level 
125         (via the NSS name resolution modules in the C library) this 
126         redirection to the NT domain controller is completely 
127         transparent.</P
128 ><P
129 >Users on the UNIX machine can then use NT user and group 
130         names as they would use "native" UNIX names. They can chown files 
131         so that they are owned by NT domain users or even login to the 
132         UNIX machine and run a UNIX X-Window session as a domain user.</P
133 ><P
134 >The only obvious indication that Winbind is being used is 
135         that user and group names take the form DOMAIN\user and 
136         DOMAIN\group. This is necessary as it allows Winbind to determine 
137         that redirection to a domain controller is wanted for a particular 
138         lookup and which trusted domain is being referenced.</P
139 ><P
140 >Additionally, Winbind provides an authentication service 
141         that hooks into the Pluggable Authentication Modules (PAM) system 
142         to provide authentication via a NT domain to any PAM enabled 
143         applications. This capability solves the problem of synchronizing 
144         passwords between systems since all passwords are stored in a single 
145         location (on the domain controller).</P
146 ><DIV
147 CLASS="SECT2"
148 ><HR><H2
149 CLASS="SECT2"
150 ><A
151 NAME="AEN27"
152 >Target Uses</A
153 ></H2
154 ><P
155 >Winbind is targeted at organizations that have an 
156                 existing NT based domain infrastructure into which they wish 
157                 to put UNIX workstations or servers. Winbind will allow these 
158                 organizations to deploy UNIX workstations without having to 
159                 maintain a separate account infrastructure. This greatly 
160                 simplifies the administrative overhead of deploying UNIX 
161                 workstations into a NT based organization.</P
162 ><P
163 >Another interesting way in which we expect Winbind to 
164                 be used is as a central part of UNIX based appliances. Appliances 
165                 that provide file and print services to Microsoft based networks 
166                 will be able to use Winbind to provide seamless integration of 
167                 the appliance into the domain.</P
168 ></DIV
169 ></DIV
170 ><DIV
171 CLASS="SECT1"
172 ><HR><H1
173 CLASS="SECT1"
174 ><A
175 NAME="AEN31"
176 >How Winbind Works</A
177 ></H1
178 ><P
179 >The winbind system is designed around a client/server 
180         architecture. A long running <B
181 CLASS="COMMAND"
182 >winbindd</B
183 > daemon 
184         listens on a UNIX domain socket waiting for requests
185         to arrive. These requests are generated by the NSS and PAM 
186         clients and processed sequentially.</P
187 ><P
188 >The technologies used to implement winbind are described 
189         in detail below.</P
190 ><DIV
191 CLASS="SECT2"
192 ><HR><H2
193 CLASS="SECT2"
194 ><A
195 NAME="AEN36"
196 >Microsoft Remote Procedure Calls</A
197 ></H2
198 ><P
199 >Over the last two years, efforts have been underway 
200                 by various Samba Team members to decode various aspects of 
201                 the Microsoft Remote Procedure Call (MSRPC) system. This 
202                 system is used for most network related operations between 
203                 Windows NT machines including remote management, user authentication
204                 and print spooling. Although initially this work was done 
205                 to aid the implementation of Primary Domain Controller (PDC) 
206                 functionality in Samba, it has also yielded a body of code which 
207                 can be used for other purposes.</P
208 ><P
209 >Winbind uses various MSRPC calls to enumerate domain users 
210                 and groups and to obtain detailed information about individual 
211                 users or groups. Other MSRPC calls can be used to authenticate 
212                 NT domain users and to change user passwords. By directly querying 
213                 a Windows PDC for user and group information, winbind maps the 
214                 NT account information onto UNIX user and group names.</P
215 ></DIV
216 ><DIV
217 CLASS="SECT2"
218 ><HR><H2
219 CLASS="SECT2"
220 ><A
221 NAME="AEN40"
222 >Name Service Switch</A
223 ></H2
224 ><P
225 >The Name Service Switch, or NSS, is a feature that is 
226                 present in many UNIX operating systems. It allows system 
227                 information such as hostnames, mail aliases and user information 
228                 to be resolved from different sources. For example, a standalone 
229                 UNIX workstation may resolve system information from a series of 
230                 flat files stored on the local filesystem. A networked workstation 
231                 may first attempt to resolve system information from local files, 
232                 and then consult a NIS database for user information or a DNS server 
233                 for hostname information.</P
234 ><P
235 >The NSS application programming interface allows winbind 
236                 to present itself as a source of system information when 
237                 resolving UNIX usernames and groups.  Winbind uses this interface, 
238                 and information obtained from a Windows NT server using MSRPC 
239                 calls to provide a new source of account enumeration.  Using standard 
240                 UNIX library calls, one can enumerate the users and groups on
241                 a UNIX machine running winbind and see all users and groups in 
242                 a NT domain plus any trusted domain as though they were local 
243                 users and groups.</P
244 ><P
245 >The primary control file for NSS is 
246                 <TT
247 CLASS="FILENAME"
248 >/etc/nsswitch.conf</TT
249 >. 
250                 When a UNIX application makes a request to do a lookup 
251                 the C library looks in <TT
252 CLASS="FILENAME"
253 >/etc/nsswitch.conf</TT
254
255                 for a line which matches the service type being requested, for 
256                 example the "passwd" service type is used when user or group names 
257                 are looked up. This     config line species which implementations 
258                 of that service should be tried and in what order. If the passwd 
259                 config line is:</P
260 ><P
261 ><B
262 CLASS="COMMAND"
263 >passwd: files example</B
264 ></P
265 ><P
266 >then the C library will first load a module called 
267                 <TT
268 CLASS="FILENAME"
269 >/lib/libnss_files.so</TT
270 > followed by
271                 the module <TT
272 CLASS="FILENAME"
273 >/lib/libnss_example.so</TT
274 >. The 
275                 C library will dynamically load each of these modules in turn 
276                 and call resolver functions within the modules to try to resolve 
277                 the request. Once the request is resolved the C library returns the
278                 result to the application.</P
279 ><P
280 >This NSS interface provides a very easy way for Winbind 
281                 to hook into the operating system. All that needs to be done 
282                 is to put <TT
283 CLASS="FILENAME"
284 >libnss_winbind.so</TT
285 > in <TT
286 CLASS="FILENAME"
287 >/lib/</TT
288
289                 then add "winbind" into <TT
290 CLASS="FILENAME"
291 >/etc/nsswitch.conf</TT
292 > at 
293                 the appropriate place. The C library will then call Winbind to 
294                 resolve user and group names.</P
295 ></DIV
296 ><DIV
297 CLASS="SECT2"
298 ><HR><H2
299 CLASS="SECT2"
300 ><A
301 NAME="AEN56"
302 >Pluggable Authentication Modules</A
303 ></H2
304 ><P
305 >Pluggable Authentication Modules, also known as PAM, 
306                 is a system for abstracting authentication and authorization 
307                 technologies. With a PAM module it is possible to specify different 
308                 authentication methods for different system applications without 
309                 having to recompile these applications. PAM is also useful
310                 for implementing a particular policy for authorization. For example, 
311                 a system administrator may only allow console logins from users 
312                 stored in the local password file but only allow users resolved from 
313                 a NIS database to log in over the network.</P
314 ><P
315 >Winbind uses the authentication management and password 
316                 management PAM interface to integrate Windows NT users into a 
317                 UNIX system. This allows Windows NT users to log in to a UNIX 
318                 machine and be authenticated against a suitable Primary Domain 
319                 Controller. These users can also change their passwords and have 
320                 this change take effect directly on the Primary Domain Controller.
321                 </P
322 ><P
323 >PAM is configured by providing control files in the directory 
324                 <TT
325 CLASS="FILENAME"
326 >/etc/pam.d/</TT
327 > for each of the services that 
328                 require authentication. When an authentication request is made 
329                 by an application the PAM code in the C library looks up this
330                 control file to determine what modules to load to do the 
331                 authentication check and in what order. This interface makes adding 
332                 a new authentication service for Winbind very easy, all that needs 
333                 to be done is that the <TT
334 CLASS="FILENAME"
335 >pam_winbind.so</TT
336 > module 
337                 is copied to <TT
338 CLASS="FILENAME"
339 >/lib/security/</TT
340 > and the PAM 
341                 control files for relevant services are updated to allow 
342                 authentication via winbind. See the PAM documentation
343                 for more details.</P
344 ></DIV
345 ><DIV
346 CLASS="SECT2"
347 ><HR><H2
348 CLASS="SECT2"
349 ><A
350 NAME="AEN64"
351 >User and Group ID Allocation</A
352 ></H2
353 ><P
354 >When a user or group is created under Windows NT 
355                 is it allocated a numerical relative identifier (RID). This is 
356                 slightly different to UNIX which has a range of numbers that are 
357                 used to identify users, and the same range in which to identify 
358                 groups. It is winbind's job to convert RIDs to UNIX id numbers and
359                 vice versa.  When winbind is configured it is given part of the UNIX 
360                 user id space and a part of the UNIX group id space in which to 
361                 store Windows NT users and groups. If a Windows NT user is 
362                 resolved for the first time, it is allocated the next UNIX id from 
363                 the range. The same process applies for Windows NT groups. Over 
364                 time, winbind will have mapped all Windows NT users and groups
365                 to UNIX user ids and group ids.</P
366 ><P
367 >The results of this mapping are stored persistently in 
368                 an ID mapping database held in a tdb database). This ensures that 
369                 RIDs are mapped to UNIX IDs in a consistent way.</P
370 ></DIV
371 ><DIV
372 CLASS="SECT2"
373 ><HR><H2
374 CLASS="SECT2"
375 ><A
376 NAME="AEN68"
377 >Result Caching</A
378 ></H2
379 ><P
380 >An active system can generate a lot of user and group 
381                 name lookups. To reduce the network cost of these lookups winbind 
382                 uses a caching scheme based on the SAM sequence number supplied 
383                 by NT domain controllers.  User or group information returned 
384                 by a PDC is cached by winbind along with a sequence number also 
385                 returned by the PDC. This sequence number is incremented by 
386                 Windows NT whenever any user or group information is modified. If 
387                 a cached entry has expired, the sequence number is requested from 
388                 the PDC and compared against the sequence number of the cached entry. 
389                 If the sequence numbers do not match, then the cached information 
390                 is discarded and up to date information is requested directly 
391                 from the PDC.</P
392 ></DIV
393 ></DIV
394 ><DIV
395 CLASS="SECT1"
396 ><HR><H1
397 CLASS="SECT1"
398 ><A
399 NAME="AEN71"
400 >Installation and Configuration</A
401 ></H1
402 ><P
403 >Many thanks to John Trostel <A
404 HREF="mailto:jtrostel@snapserver.com"
405 TARGET="_top"
406 >jtrostel@snapserver.com</A
407 >
408 for providing the HOWTO for this section.</P
409 ><P
410 >This HOWTO describes how to get winbind services up and running 
411 to control access and authenticate users on your Linux box using 
412 the winbind services which come with SAMBA 2.2.2.</P
413 ><P
414 >There is also some Solaris specific information in 
415 <TT
416 CLASS="FILENAME"
417 >docs/textdocs/Solaris-Winbind-HOWTO.txt</TT
418 >.
419 Future revisions of this document will incorporate that
420 information.</P
421 ><DIV
422 CLASS="SECT2"
423 ><HR><H2
424 CLASS="SECT2"
425 ><A
426 NAME="AEN78"
427 >Introduction</A
428 ></H2
429 ><P
430 >This HOWTO describes the procedures used to get winbind up and 
431 running on my RedHat 7.1 system.  Winbind is capable of providing access 
432 and authentication control for Windows Domain users through an NT 
433 or Win2K PDC for 'regular' services, such as telnet a nd ftp, as
434 well for SAMBA services.</P
435 ><P
436 >This HOWTO has been written from a 'RedHat-centric' perspective, so if 
437 you are using another distribution, you may have to modify the instructions 
438 somewhat to fit the way your distribution works.</P
439 ><P
440 ></P
441 ><UL
442 ><LI
443 ><P
444 >       <I
445 CLASS="EMPHASIS"
446 >Why should I to this?</I
447 >
448         </P
449 ><P
450 >This allows the SAMBA administrator to rely on the 
451         authentication mechanisms on the NT/Win2K PDC for the authentication 
452         of domain members.  NT/Win2K users no longer need to have separate 
453         accounts on the SAMBA server.
454         </P
455 ></LI
456 ><LI
457 ><P
458 >       <I
459 CLASS="EMPHASIS"
460 >Who should be reading this document?</I
461 >
462         </P
463 ><P
464 >       This HOWTO is designed for system administrators.  If you are 
465         implementing SAMBA on a file server and wish to (fairly easily) 
466         integrate existing NT/Win2K users from your PDC onto the
467         SAMBA server, this HOWTO is for you.  That said, I am no NT or PAM 
468         expert, so you may find a better or easier way to accomplish 
469         these tasks.
470         </P
471 ></LI
472 ></UL
473 ></DIV
474 ><DIV
475 CLASS="SECT2"
476 ><HR><H2
477 CLASS="SECT2"
478 ><A
479 NAME="AEN91"
480 >Requirements</A
481 ></H2
482 ><P
483 >If you have a samba configuration file that you are currently 
484 using... <I
485 CLASS="EMPHASIS"
486 >BACK IT UP!</I
487 >  If your system already uses PAM, 
488 <I
489 CLASS="EMPHASIS"
490 >back up the <TT
491 CLASS="FILENAME"
492 >/etc/pam.d</TT
493 > directory 
494 contents!</I
495 > If you haven't already made a boot disk, 
496 <I
497 CLASS="EMPHASIS"
498 >MAKE ONE NOW!</I
499 ></P
500 ><P
501 >Messing with the pam configuration files can make it nearly impossible 
502 to log in to yourmachine. That's why you want to be able to boot back 
503 into your machine in single user mode and restore your 
504 <TT
505 CLASS="FILENAME"
506 >/etc/pam.d</TT
507 > back to the original state they were in if 
508 you get frustrated with the way things are going.  ;-)</P
509 ><P
510 >The latest version of SAMBA (version 2.2.2 as of this writing), now 
511 includes a functioning winbindd daemon.  Please refer to the 
512 <A
513 HREF="http://samba.org/"
514 TARGET="_top"
515 >main SAMBA web page</A
516 > or, 
517 better yet, your closest SAMBA mirror site for instructions on 
518 downloading the source code.</P
519 ><P
520 >To allow Domain users the ability to access SAMBA shares and 
521 files, as well as potentially other services provided by your 
522 SAMBA machine, PAM (pluggable authentication modules) must
523 be setup properly on your machine.  In order to compile the 
524 winbind modules, you should have at least the pam libraries resident 
525 on your system.  For recent RedHat systems (7.1, for instance), that 
526 means <TT
527 CLASS="FILENAME"
528 >pam-0.74-22</TT
529 >.  For best results, it is helpful to also
530 install the development packages in <TT
531 CLASS="FILENAME"
532 >pam-devel-0.74-22</TT
533 >.</P
534 ></DIV
535 ><DIV
536 CLASS="SECT2"
537 ><HR><H2
538 CLASS="SECT2"
539 ><A
540 NAME="AEN105"
541 >Testing Things Out</A
542 ></H2
543 ><P
544 >Before starting, it is probably best to kill off all the SAMBA 
545 related daemons running on your server.  Kill off all <B
546 CLASS="COMMAND"
547 >smbd</B
548 >, 
549 <B
550 CLASS="COMMAND"
551 >nmbd</B
552 >, and <B
553 CLASS="COMMAND"
554 >winbindd</B
555 > processes that may 
556 be running.  To use PAM, you will want to make sure that you have the 
557 standard PAM package (for RedHat) which supplies the <TT
558 CLASS="FILENAME"
559 >/etc/pam.d</TT
560
561 directory structure, including the pam modules are used by pam-aware 
562 services, several pam libraries, and the <TT
563 CLASS="FILENAME"
564 >/usr/doc</TT
565
566 and <TT
567 CLASS="FILENAME"
568 >/usr/man</TT
569 > entries for pam.  Winbind built better 
570 in SAMBA if the pam-devel package was also installed.  This package includes 
571 the header files needed to compile pam-aware applications. For instance, 
572 my RedHat system has both <TT
573 CLASS="FILENAME"
574 >pam-0.74-22</TT
575 > and
576 <TT
577 CLASS="FILENAME"
578 >pam-devel-0.74-22</TT
579 > RPMs installed.</P
580 ><DIV
581 CLASS="SECT3"
582 ><HR><H3
583 CLASS="SECT3"
584 ><A
585 NAME="AEN116"
586 >Configure and compile SAMBA</A
587 ></H3
588 ><P
589 >The configuration and compilation of SAMBA is pretty straightforward.
590 The first three steps may not be necessary depending upon
591 whether or not you have previously built the Samba binaries.</P
592 ><P
593 ><PRE
594 CLASS="PROGRAMLISTING"
595 ><TT
596 CLASS="PROMPT"
597 >root#</TT
598 > <B
599 CLASS="COMMAND"
600 >autoconf</B
601 >
602 <TT
603 CLASS="PROMPT"
604 >root#</TT
605 > <B
606 CLASS="COMMAND"
607 >make clean</B
608 >
609 <TT
610 CLASS="PROMPT"
611 >root#</TT
612 > <B
613 CLASS="COMMAND"
614 >rm config.cache</B
615 >
616 <TT
617 CLASS="PROMPT"
618 >root#</TT
619 > <B
620 CLASS="COMMAND"
621 >./configure --with-winbind</B
622 >
623 <TT
624 CLASS="PROMPT"
625 >root#</TT
626 > <B
627 CLASS="COMMAND"
628 >make</B
629 >
630 <TT
631 CLASS="PROMPT"
632 >root#</TT
633 > <B
634 CLASS="COMMAND"
635 >make install</B
636 ></PRE
637 ></P
638 ><P
639 >This will, by default, install SAMBA in <TT
640 CLASS="FILENAME"
641 >/usr/local/samba</TT
642 >.
643 See the main SAMBA documentation if you want to install SAMBA somewhere else.
644 It will also build the winbindd executable and libraries. </P
645 ></DIV
646 ><DIV
647 CLASS="SECT3"
648 ><HR><H3
649 CLASS="SECT3"
650 ><A
651 NAME="AEN135"
652 >Configure <TT
653 CLASS="FILENAME"
654 >nsswitch.conf</TT
655 > and the 
656 winbind libraries</A
657 ></H3
658 ><P
659 >The libraries needed to run the <B
660 CLASS="COMMAND"
661 >winbindd</B
662 > daemon 
663 through nsswitch need to be copied to their proper locations, so</P
664 ><P
665 ><TT
666 CLASS="PROMPT"
667 >root#</TT
668 > <B
669 CLASS="COMMAND"
670 >cp ../samba/source/nsswitch/libnss_winbind.so /lib</B
671 ></P
672 ><P
673 >I also found it necessary to make the following symbolic link:</P
674 ><P
675 ><TT
676 CLASS="PROMPT"
677 >root#</TT
678 > <B
679 CLASS="COMMAND"
680 >ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2</B
681 ></P
682 ><P
683 >And, in the case of Sun solaris:</P
684 ><P
685 ><TT
686 CLASS="PROMPT"
687 >root#</TT
688 > <B
689 CLASS="COMMAND"
690 >ln -s /usr/lib/libnss_winbind.so /usr/lib/libnss_winbind.so.1</B
691 >
692 <TT
693 CLASS="PROMPT"
694 >root#</TT
695 > <B
696 CLASS="COMMAND"
697 >ln -s /usr/lib/libnss_winbind.so /usr/lib/nss_winbind.so.1</B
698 >
699 <TT
700 CLASS="PROMPT"
701 >root#</TT
702 > <B
703 CLASS="COMMAND"
704 >ln -s /usr/lib/libnss_winbind.so /usr/lib/nss_winbind.so.2</B
705 ></P
706 ><P
707 >Now, as root you need to edit <TT
708 CLASS="FILENAME"
709 >/etc/nsswitch.conf</TT
710 > to 
711 allow user and group entries to be visible from the <B
712 CLASS="COMMAND"
713 >winbindd</B
714
715 daemon.  My <TT
716 CLASS="FILENAME"
717 >/etc/nsswitch.conf</TT
718 > file look like 
719 this after editing:</P
720 ><P
721 ><PRE
722 CLASS="PROGRAMLISTING"
723 >       passwd:     files winbind
724         shadow:     files 
725         group:      files winbind</PRE
726 ></P
727 ><P
728 >       
729 The libraries needed by the winbind daemon will be automatically 
730 entered into the <B
731 CLASS="COMMAND"
732 >ldconfig</B
733 > cache the next time 
734 your system reboots, but it 
735 is faster (and you don't need to reboot) if you do it manually:</P
736 ><P
737 ><TT
738 CLASS="PROMPT"
739 >root#</TT
740 > <B
741 CLASS="COMMAND"
742 >/sbin/ldconfig -v | grep winbind</B
743 ></P
744 ><P
745 >This makes <TT
746 CLASS="FILENAME"
747 >libnss_winbind</TT
748 > available to winbindd 
749 and echos back a check to you.</P
750 ></DIV
751 ><DIV
752 CLASS="SECT3"
753 ><HR><H3
754 CLASS="SECT3"
755 ><A
756 NAME="AEN168"
757 >Configure smb.conf</A
758 ></H3
759 ><P
760 >Several parameters are needed in the smb.conf file to control 
761 the behavior of <B
762 CLASS="COMMAND"
763 >winbindd</B
764 >. Configure 
765 <TT
766 CLASS="FILENAME"
767 >smb.conf</TT
768 > These are described in more detail in 
769 the <A
770 HREF="winbindd.8.html"
771 TARGET="_top"
772 >winbindd(8)</A
773 > man page.  My 
774 <TT
775 CLASS="FILENAME"
776 >smb.conf</TT
777 > file was modified to
778 include the following entries in the [global] section:</P
779 ><P
780 ><PRE
781 CLASS="PROGRAMLISTING"
782 >[global]
783      &#60;...&#62;
784      # separate domain and username with '+', like DOMAIN+username
785      <A
786 HREF="winbindd.8.html#WINBINDSEPARATOR"
787 TARGET="_top"
788 >winbind separator</A
789 > = +
790      # use uids from 10000 to 20000 for domain users
791      <A
792 HREF="winbindd.8.html#WINBINDUID"
793 TARGET="_top"
794 >winbind uid</A
795 > = 10000-20000
796      # use gids from 10000 to 20000 for domain groups
797      <A
798 HREF="winbindd.8.html#WINBINDGID"
799 TARGET="_top"
800 >winbind gid</A
801 > = 10000-20000
802      # allow enumeration of winbind users and groups
803      <A
804 HREF="winbindd.8.html#WINBINDENUMUSERS"
805 TARGET="_top"
806 >winbind enum users</A
807 > = yes
808      <A
809 HREF="winbindd.8.html#WINBINDENUMGROUP"
810 TARGET="_top"
811 >winbind enum groups</A
812 > = yes
813      # give winbind users a real shell (only needed if they have telnet access)
814      <A
815 HREF="winbindd.8.html#TEMPLATEHOMEDIR"
816 TARGET="_top"
817 >template homedir</A
818 > = /home/winnt/%D/%U
819      <A
820 HREF="winbindd.8.html#TEMPLATESHELL"
821 TARGET="_top"
822 >template shell</A
823 > = /bin/bash</PRE
824 ></P
825 ></DIV
826 ><DIV
827 CLASS="SECT3"
828 ><HR><H3
829 CLASS="SECT3"
830 ><A
831 NAME="AEN184"
832 >Join the SAMBA server to the PDC domain</A
833 ></H3
834 ><P
835 >Enter the following command to make the SAMBA server join the 
836 PDC domain, where <TT
837 CLASS="REPLACEABLE"
838 ><I
839 >DOMAIN</I
840 ></TT
841 > is the name of 
842 your Windows domain and <TT
843 CLASS="REPLACEABLE"
844 ><I
845 >Administrator</I
846 ></TT
847 > is 
848 a domain user who has administrative privileges in the domain.</P
849 ><P
850 ><TT
851 CLASS="PROMPT"
852 >root#</TT
853 > <B
854 CLASS="COMMAND"
855 >/usr/local/samba/bin/net rpc join -s PDC -U Administrator</B
856 ></P
857 ><P
858 >The proper response to the command should be: "Joined the domain 
859 <TT
860 CLASS="REPLACEABLE"
861 ><I
862 >DOMAIN</I
863 ></TT
864 >" where <TT
865 CLASS="REPLACEABLE"
866 ><I
867 >DOMAIN</I
868 ></TT
869
870 is your DOMAIN name.</P
871 ></DIV
872 ><DIV
873 CLASS="SECT3"
874 ><HR><H3
875 CLASS="SECT3"
876 ><A
877 NAME="AEN195"
878 >Start up the winbindd daemon and test it!</A
879 ></H3
880 ><P
881 >Eventually, you will want to modify your smb startup script to 
882 automatically invoke the winbindd daemon when the other parts of 
883 SAMBA start, but it is possible to test out just the winbind
884 portion first.  To start up winbind services, enter the following 
885 command as root:</P
886 ><P
887 ><TT
888 CLASS="PROMPT"
889 >root#</TT
890 > <B
891 CLASS="COMMAND"
892 >/usr/local/samba/bin/winbindd</B
893 ></P
894 ><P
895 >I'm always paranoid and like to make sure the daemon 
896 is really running...</P
897 ><P
898 ><TT
899 CLASS="PROMPT"
900 >root#</TT
901 > <B
902 CLASS="COMMAND"
903 >ps -ae | grep winbindd</B
904 ></P
905 ><P
906 >This command should produce output like this, if the daemon is running</P
907 ><P
908 >3025 ?        00:00:00 winbindd</P
909 ><P
910 >Now... for the real test, try to get some information about the 
911 users on your PDC</P
912 ><P
913 ><TT
914 CLASS="PROMPT"
915 >root#</TT
916 > <B
917 CLASS="COMMAND"
918 >/usr/local/samba/bin/wbinfo -u</B
919 ></P
920 ><P
921 >       
922 This should echo back a list of users on your Windows users on 
923 your PDC.  For example, I get the following response:</P
924 ><P
925 ><PRE
926 CLASS="PROGRAMLISTING"
927 >CEO+Administrator
928 CEO+burdell
929 CEO+Guest
930 CEO+jt-ad
931 CEO+krbtgt
932 CEO+TsInternetUser</PRE
933 ></P
934 ><P
935 >Obviously, I have named my domain 'CEO' and my <TT
936 CLASS="PARAMETER"
937 ><I
938 >winbind
939 separator</I
940 ></TT
941 > is '+'.</P
942 ><P
943 >You can do the same sort of thing to get group information from 
944 the PDC:</P
945 ><P
946 ><PRE
947 CLASS="PROGRAMLISTING"
948 ><TT
949 CLASS="PROMPT"
950 >root#</TT
951 > <B
952 CLASS="COMMAND"
953 >/usr/local/samba/bin/wbinfo -g</B
954 >
955 CEO+Domain Admins
956 CEO+Domain Users
957 CEO+Domain Guests
958 CEO+Domain Computers
959 CEO+Domain Controllers
960 CEO+Cert Publishers
961 CEO+Schema Admins
962 CEO+Enterprise Admins
963 CEO+Group Policy Creator Owners</PRE
964 ></P
965 ><P
966 >The function 'getent' can now be used to get unified 
967 lists of both local and PDC users and groups.
968 Try the following command:</P
969 ><P
970 ><TT
971 CLASS="PROMPT"
972 >root#</TT
973 > <B
974 CLASS="COMMAND"
975 >getent passwd</B
976 ></P
977 ><P
978 >You should get a list that looks like your <TT
979 CLASS="FILENAME"
980 >/etc/passwd</TT
981
982 list followed by the domain users with their new uids, gids, home 
983 directories and default shells.</P
984 ><P
985 >The same thing can be done for groups with the command</P
986 ><P
987 ><TT
988 CLASS="PROMPT"
989 >root#</TT
990 > <B
991 CLASS="COMMAND"
992 >getent group</B
993 ></P
994 ></DIV
995 ><DIV
996 CLASS="SECT3"
997 ><HR><H3
998 CLASS="SECT3"
999 ><A
1000 NAME="AEN231"
1001 >Fix the init.d startup scripts</A
1002 ></H3
1003 ><DIV
1004 CLASS="SECT4"
1005 ><H4
1006 CLASS="SECT4"
1007 ><A
1008 NAME="AEN233"
1009 >Linux</A
1010 ></H4
1011 ><P
1012 >The <B
1013 CLASS="COMMAND"
1014 >winbindd</B
1015 > daemon needs to start up after the 
1016 <B
1017 CLASS="COMMAND"
1018 >smbd</B
1019 > and <B
1020 CLASS="COMMAND"
1021 >nmbd</B
1022 > daemons are running.  
1023 To accomplish this task, you need to modify the startup scripts of your system. They are located at <TT
1024 CLASS="FILENAME"
1025 >/etc/init.d/smb</TT
1026 > in RedHat and 
1027 <TT
1028 CLASS="FILENAME"
1029 >/etc/init.d/samba</TT
1030 > in Debian.
1031 script to add commands to invoke this daemon in the proper sequence.  My 
1032 startup script starts up <B
1033 CLASS="COMMAND"
1034 >smbd</B
1035 >, 
1036 <B
1037 CLASS="COMMAND"
1038 >nmbd</B
1039 >, and <B
1040 CLASS="COMMAND"
1041 >winbindd</B
1042 > from the 
1043 <TT
1044 CLASS="FILENAME"
1045 >/usr/local/samba/bin</TT
1046 > directory directly.  The 'start' 
1047 function in the script looks like this:</P
1048 ><P
1049 ><PRE
1050 CLASS="PROGRAMLISTING"
1051 >start() {
1052         KIND="SMB"
1053         echo -n $"Starting $KIND services: "
1054         daemon /usr/local/samba/bin/smbd $SMBDOPTIONS
1055         RETVAL=$?
1056         echo
1057         KIND="NMB"
1058         echo -n $"Starting $KIND services: "
1059         daemon /usr/local/samba/bin/nmbd $NMBDOPTIONS
1060         RETVAL2=$?
1061         echo
1062         KIND="Winbind"
1063         echo -n $"Starting $KIND services: "
1064         daemon /usr/local/samba/bin/winbindd
1065         RETVAL3=$?
1066         echo
1067         [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 -a $RETVAL3 -eq 0 ] &#38;&#38; touch /var/lock/subsys/smb || \
1068            RETVAL=1
1069         return $RETVAL
1070 }</PRE
1071 ></P
1072 ><P
1073 >The 'stop' function has a corresponding entry to shut down the 
1074 services and look s like this:</P
1075 ><P
1076 ><PRE
1077 CLASS="PROGRAMLISTING"
1078 >stop() {
1079         KIND="SMB"
1080         echo -n $"Shutting down $KIND services: "
1081         killproc smbd
1082         RETVAL=$?
1083         echo
1084         KIND="NMB"
1085         echo -n $"Shutting down $KIND services: "
1086         killproc nmbd
1087         RETVAL2=$?
1088         echo
1089         KIND="Winbind"
1090         echo -n $"Shutting down $KIND services: "
1091         killproc winbindd
1092         RETVAL3=$?
1093         [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 -a $RETVAL3 -eq 0 ] &#38;&#38; rm -f /var/lock/subsys/smb
1094         echo ""
1095         return $RETVAL
1096 }</PRE
1097 ></P
1098 ></DIV
1099 ><DIV
1100 CLASS="SECT4"
1101 ><HR><H4
1102 CLASS="SECT4"
1103 ><A
1104 NAME="AEN250"
1105 >Solaris</A
1106 ></H4
1107 ><P
1108 >On solaris, you need to modify the 
1109 <TT
1110 CLASS="FILENAME"
1111 >/etc/init.d/samba.server</TT
1112 > startup script. It usually 
1113 only starts smbd and nmbd but should now start winbindd too. If you 
1114 have samba installed in <TT
1115 CLASS="FILENAME"
1116 >/usr/local/samba/bin</TT
1117 >, 
1118 the file could contains something like this:</P
1119 ><P
1120 ><PRE
1121 CLASS="PROGRAMLISTING"
1122 >##
1123 ## samba.server
1124 ##
1125
1126 if [ ! -d /usr/bin ]
1127 then                    # /usr not mounted
1128         exit
1129 fi
1130
1131 killproc() {            # kill the named process(es)
1132         pid=`/usr/bin/ps -e |
1133              /usr/bin/grep -w $1 |
1134              /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
1135         [ "$pid" != "" ] &#38;&#38; kill $pid
1136 }
1137  
1138 # Start/stop processes required for samba server
1139
1140 case "$1" in
1141
1142 'start')
1143 #
1144 # Edit these lines to suit your installation (paths, workgroup, host)
1145 #
1146 echo Starting SMBD
1147    /usr/local/samba/bin/smbd -D -s \
1148         /usr/local/samba/smb.conf
1149
1150 echo Starting NMBD
1151    /usr/local/samba/bin/nmbd -D -l \
1152         /usr/local/samba/var/log -s /usr/local/samba/smb.conf
1153
1154 echo Starting Winbind Daemon
1155    /usr/local/samba/bin/winbindd
1156    ;;
1157
1158 'stop')
1159    killproc nmbd
1160    killproc smbd
1161    killproc winbindd
1162    ;;
1163
1164 *)
1165    echo "Usage: /etc/init.d/samba.server { start | stop }"
1166    ;;
1167 esac</PRE
1168 ></P
1169 ></DIV
1170 ><DIV
1171 CLASS="SECT4"
1172 ><HR><H4
1173 CLASS="SECT4"
1174 ><A
1175 NAME="AEN257"
1176 >Restarting</A
1177 ></H4
1178 ><P
1179 >If you restart the <B
1180 CLASS="COMMAND"
1181 >smbd</B
1182 >, <B
1183 CLASS="COMMAND"
1184 >nmbd</B
1185 >, 
1186 and <B
1187 CLASS="COMMAND"
1188 >winbindd</B
1189 > daemons at this point, you
1190 should be able to connect to the samba server as a domain member just as
1191 if you were a local user.</P
1192 ></DIV
1193 ></DIV
1194 ><DIV
1195 CLASS="SECT3"
1196 ><HR><H3
1197 CLASS="SECT3"
1198 ><A
1199 NAME="AEN263"
1200 >Configure Winbind and PAM</A
1201 ></H3
1202 ><P
1203 >If you have made it this far, you know that winbindd and samba are working
1204 together.  If you want to use winbind to provide authentication for other 
1205 services, keep reading.  The pam configuration files need to be altered in
1206 this step.  (Did you remember to make backups of your original 
1207 <TT
1208 CLASS="FILENAME"
1209 >/etc/pam.d</TT
1210 > files? If not, do it now.)</P
1211 ><P
1212 >You will need a pam module to use winbindd with these other services.  This 
1213 module will be compiled in the <TT
1214 CLASS="FILENAME"
1215 >../source/nsswitch</TT
1216 > directory
1217 by invoking the command</P
1218 ><P
1219 ><TT
1220 CLASS="PROMPT"
1221 >root#</TT
1222 > <B
1223 CLASS="COMMAND"
1224 >make nsswitch/pam_winbind.so</B
1225 ></P
1226 ><P
1227 >from the <TT
1228 CLASS="FILENAME"
1229 >../source</TT
1230 > directory.  The
1231 <TT
1232 CLASS="FILENAME"
1233 >pam_winbind.so</TT
1234 > file should be copied to the location of
1235 your other pam security modules.  On my RedHat system, this was the
1236 <TT
1237 CLASS="FILENAME"
1238 >/lib/security</TT
1239 > directory. On Solaris, the pam security 
1240 modules reside in <TT
1241 CLASS="FILENAME"
1242 >/usr/lib/security</TT
1243 >.</P
1244 ><P
1245 ><TT
1246 CLASS="PROMPT"
1247 >root#</TT
1248 > <B
1249 CLASS="COMMAND"
1250 >cp ../samba/source/nsswitch/pam_winbind.so /lib/security</B
1251 ></P
1252 ><DIV
1253 CLASS="SECT4"
1254 ><HR><H4
1255 CLASS="SECT4"
1256 ><A
1257 NAME="AEN280"
1258 >Linux/FreeBSD-specific PAM configuration</A
1259 ></H4
1260 ><P
1261 >The <TT
1262 CLASS="FILENAME"
1263 >/etc/pam.d/samba</TT
1264 > file does not need to be changed. I 
1265 just left this fileas it was:</P
1266 ><P
1267 ><PRE
1268 CLASS="PROGRAMLISTING"
1269 >auth    required        /lib/security/pam_stack.so service=system-auth
1270 account required        /lib/security/pam_stack.so service=system-auth</PRE
1271 ></P
1272 ><P
1273 >The other services that I modified to allow the use of winbind 
1274 as an authentication service were the normal login on the console (or a terminal 
1275 session), telnet logins, and ftp service.  In order to enable these 
1276 services, you may first need to change the entries in 
1277 <TT
1278 CLASS="FILENAME"
1279 >/etc/xinetd.d</TT
1280 > (or <TT
1281 CLASS="FILENAME"
1282 >/etc/inetd.conf</TT
1283 >).  
1284 RedHat 7.1 uses the new xinetd.d structure, in this case you need 
1285 to change the lines in <TT
1286 CLASS="FILENAME"
1287 >/etc/xinetd.d/telnet</TT
1288
1289 and <TT
1290 CLASS="FILENAME"
1291 >/etc/xinetd.d/wu-ftp</TT
1292 > from </P
1293 ><P
1294 ><PRE
1295 CLASS="PROGRAMLISTING"
1296 >enable = no</PRE
1297 ></P
1298 ><P
1299 >to</P
1300 ><P
1301 ><PRE
1302 CLASS="PROGRAMLISTING"
1303 >enable = yes</PRE
1304 ></P
1305 ><P
1306 >       
1307 For ftp services to work properly, you will also need to either 
1308 have individual directories for the domain users already present on 
1309 the server, or change the home directory template to a general
1310 directory for all domain users.  These can be easily set using 
1311 the <TT
1312 CLASS="FILENAME"
1313 >smb.conf</TT
1314 > global entry 
1315 <B
1316 CLASS="COMMAND"
1317 >template homedir</B
1318 >.</P
1319 ><P
1320 >The <TT
1321 CLASS="FILENAME"
1322 >/etc/pam.d/ftp</TT
1323 > file can be changed 
1324 to allow winbind ftp access in a manner similar to the
1325 samba file.  My <TT
1326 CLASS="FILENAME"
1327 >/etc/pam.d/ftp</TT
1328 > file was 
1329 changed to look like this:</P
1330 ><P
1331 ><PRE
1332 CLASS="PROGRAMLISTING"
1333 >auth       required     /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
1334 auth       sufficient   /lib/security/pam_winbind.so
1335 auth       required     /lib/security/pam_stack.so service=system-auth
1336 auth       required     /lib/security/pam_shells.so
1337 account    sufficient   /lib/security/pam_winbind.so
1338 account    required     /lib/security/pam_stack.so service=system-auth
1339 session    required     /lib/security/pam_stack.so service=system-auth</PRE
1340 ></P
1341 ><P
1342 >The <TT
1343 CLASS="FILENAME"
1344 >/etc/pam.d/login</TT
1345 > file can be changed nearly the 
1346 same way.  It now looks like this:</P
1347 ><P
1348 ><PRE
1349 CLASS="PROGRAMLISTING"
1350 >auth       required     /lib/security/pam_securetty.so
1351 auth       sufficient   /lib/security/pam_winbind.so
1352 auth       sufficient   /lib/security/pam_unix.so use_first_pass
1353 auth       required     /lib/security/pam_stack.so service=system-auth
1354 auth       required     /lib/security/pam_nologin.so
1355 account    sufficient   /lib/security/pam_winbind.so
1356 account    required     /lib/security/pam_stack.so service=system-auth
1357 password   required     /lib/security/pam_stack.so service=system-auth
1358 session    required     /lib/security/pam_stack.so service=system-auth
1359 session    optional     /lib/security/pam_console.so</PRE
1360 ></P
1361 ><P
1362 >In this case, I added the <B
1363 CLASS="COMMAND"
1364 >auth sufficient /lib/security/pam_winbind.so</B
1365
1366 lines as before, but also added the <B
1367 CLASS="COMMAND"
1368 >required pam_securetty.so</B
1369
1370 above it, to disallow root logins over the network.  I also added a 
1371 <B
1372 CLASS="COMMAND"
1373 >sufficient /lib/security/pam_unix.so use_first_pass</B
1374 >
1375 line after the <B
1376 CLASS="COMMAND"
1377 >winbind.so</B
1378 > line to get rid of annoying 
1379 double prompts for passwords.</P
1380 ></DIV
1381 ><DIV
1382 CLASS="SECT4"
1383 ><HR><H4
1384 CLASS="SECT4"
1385 ><A
1386 NAME="AEN313"
1387 >Solaris-specific configuration</A
1388 ></H4
1389 ><P
1390 >The /etc/pam.conf needs to be changed. I changed this file so that my Domain
1391 users can logon both locally as well as telnet.The following are the changes
1392 that I made.You can customize the pam.conf file as per your requirements,but
1393 be sure of those changes because in the worst case it will leave your system
1394 nearly impossible to boot.</P
1395 ><P
1396 ><PRE
1397 CLASS="PROGRAMLISTING"
1398 >#
1399 #ident  "@(#)pam.conf   1.14    99/09/16 SMI"
1400 #
1401 # Copyright (c) 1996-1999, Sun Microsystems, Inc.
1402 # All Rights Reserved.
1403 #
1404 # PAM configuration
1405 #
1406 # Authentication management
1407 #
1408 login   auth required   /usr/lib/security/pam_winbind.so
1409 login   auth required   /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass 
1410 login   auth required   /usr/lib/security/$ISA/pam_dial_auth.so.1 try_first_pass 
1411 #
1412 rlogin  auth sufficient /usr/lib/security/pam_winbind.so
1413 rlogin  auth sufficient /usr/lib/security/$ISA/pam_rhosts_auth.so.1
1414 rlogin  auth required   /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
1415 #
1416 dtlogin auth sufficient /usr/lib/security/pam_winbind.so
1417 dtlogin auth required   /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
1418 #
1419 rsh     auth required   /usr/lib/security/$ISA/pam_rhosts_auth.so.1
1420 other   auth sufficient /usr/lib/security/pam_winbind.so
1421 other   auth required   /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
1422 #
1423 # Account management
1424 #
1425 login   account sufficient      /usr/lib/security/pam_winbind.so
1426 login   account requisite       /usr/lib/security/$ISA/pam_roles.so.1 
1427 login   account required        /usr/lib/security/$ISA/pam_unix.so.1 
1428 #
1429 dtlogin account sufficient      /usr/lib/security/pam_winbind.so
1430 dtlogin account requisite       /usr/lib/security/$ISA/pam_roles.so.1 
1431 dtlogin account required        /usr/lib/security/$ISA/pam_unix.so.1 
1432 #
1433 other   account sufficient      /usr/lib/security/pam_winbind.so
1434 other   account requisite       /usr/lib/security/$ISA/pam_roles.so.1 
1435 other   account required        /usr/lib/security/$ISA/pam_unix.so.1 
1436 #
1437 # Session management
1438 #
1439 other   session required        /usr/lib/security/$ISA/pam_unix.so.1 
1440 #
1441 # Password management
1442 #
1443 #other   password sufficient     /usr/lib/security/pam_winbind.so
1444 other   password required       /usr/lib/security/$ISA/pam_unix.so.1 
1445 dtsession auth required /usr/lib/security/$ISA/pam_unix.so.1
1446 #
1447 # Support for Kerberos V5 authentication (uncomment to use Kerberos)
1448 #
1449 #rlogin auth optional   /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
1450 #login  auth optional   /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
1451 #dtlogin        auth optional   /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
1452 #other  auth optional   /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
1453 #dtlogin        account optional /usr/lib/security/$ISA/pam_krb5.so.1
1454 #other  account optional /usr/lib/security/$ISA/pam_krb5.so.1
1455 #other  session optional /usr/lib/security/$ISA/pam_krb5.so.1
1456 #other  password optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass</PRE
1457 ></P
1458 ><P
1459 >I also added a try_first_pass line after the winbind.so line to get rid of
1460 annoying double prompts for passwords.</P
1461 ><P
1462 >Now restart your Samba &#38; try connecting through your application that you
1463 configured in the pam.conf.</P
1464 ></DIV
1465 ></DIV
1466 ></DIV
1467 ></DIV
1468 ><DIV
1469 CLASS="SECT1"
1470 ><HR><H1
1471 CLASS="SECT1"
1472 ><A
1473 NAME="AEN320"
1474 >Limitations</A
1475 ></H1
1476 ><P
1477 >Winbind has a number of limitations in its current 
1478         released version that we hope to overcome in future 
1479         releases:</P
1480 ><P
1481 ></P
1482 ><UL
1483 ><LI
1484 ><P
1485 >Winbind is currently only available for 
1486                 the Linux operating system, although ports to other operating 
1487                 systems are certainly possible. For such ports to be feasible, 
1488                 we require the C library of the target operating system to 
1489                 support the Name Service Switch and Pluggable Authentication
1490                 Modules systems. This is becoming more common as NSS and 
1491                 PAM gain        support among UNIX vendors.</P
1492 ></LI
1493 ><LI
1494 ><P
1495 >The mappings of Windows NT RIDs to UNIX ids 
1496                 is not made algorithmically and depends on the order in which 
1497                 unmapped users or groups are seen by winbind. It may be difficult 
1498                 to recover the mappings of rid to UNIX id mapping if the file 
1499                 containing this information is corrupted or destroyed.</P
1500 ></LI
1501 ><LI
1502 ><P
1503 >Currently the winbind PAM module does not take 
1504                 into account possible workstation and logon time restrictions 
1505                 that may be been set for Windows NT users.</P
1506 ></LI
1507 ></UL
1508 ></DIV
1509 ><DIV
1510 CLASS="SECT1"
1511 ><HR><H1
1512 CLASS="SECT1"
1513 ><A
1514 NAME="AEN330"
1515 >Conclusion</A
1516 ></H1
1517 ><P
1518 >The winbind system, through the use of the Name Service 
1519         Switch, Pluggable Authentication Modules, and appropriate 
1520         Microsoft RPC calls have allowed us to provide seamless 
1521         integration of Microsoft Windows NT domain users on a
1522         UNIX system. The result is a great reduction in the administrative 
1523         cost of running a mixed UNIX and NT network.</P
1524 ></DIV
1525 ></DIV
1526 ></BODY
1527 ></HTML
1528 >