Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Tuesday, April 22nd, 2008 at 8:56:14pm UTC 

  1. [email protected]:~/samba-3.0.26a/source/pam_smbpass$ ls
  2. CHANGELOG  pam_smb_acct.c  pam_smb_auth.o    README     support.h
  3. general.h  pam_smb_acct.o  pam_smb_passwd.c  samples    support.o
  4. INSTALL    pam_smb_auth.c  pam_smb_passwd.o  support.c  TODO
  5.  
  6. How do i build this? no make file...
  7.  
  8. cat INSTALL:
  9.  
  10. Because pam_smbpass is derived from the Samba smbpasswd utility, recent
  11. versions of pam_smbpass require a copy of the Samba source code to be
  12. available on the build system.  Version 0.7.5 has been tested against
  13. Samba 2.2.0-alpha3, and this is the recommended version of Samba to use
  14. for building pam_smbpass.  This only affects /building/ pam_smbpass; you
  15. can still run any version of the Samba server that you want, although
  16. clearly it saves some disk space to have only one copy of the source
  17. code on your system (Samba 2.2.0-alpha3 takes roughly 32MB of disk space
  18. to build pam_smbpass).
  19.  
  20. Version 0.7.5 features a new build system to make it easier to build
  21. pam_smbpass.
  22.  
  23.  
  24. Using the new build system
  25. ==========================
  26.  
  27. If you don't have a copy of the Samba source code on your machine, and you
  28. don't have a preferred Samba version (or mirror site), you can build
  29. pam_smbpass by just typing 'make'.
  30.  
  31. If you want to use a version other than 2.2.0-alpha3, or you want to
  32. download the source code from a faster Samba mirror (see
  33. <http://us1.samba.org/samba/> for a list of mirror sites), please download
  34. the source code and unpack it before running make.  The build scripts will
  35. attempt to autodetect your Samba source directory, and if it can't be
  36. found automatically, you will be given the opportunity to specify an
  37. alternate directory for the Samba sources.
  38.  
  39. Feedback is welcome if you try (or succeed!) to build pam_smbpass with
  40. other versions of Samba.
  41.  
  42.  
  43. Options to 'make'
  44. =================
  45.  
  46. By default, pam_smbpass will configure the Samba build tree with the
  47. options
  48.  
  49.     --with-fhs --with-privatedir=/etc --with-configdir=/etc
  50.  
  51. This will configure pam_smbpass to look for the smbpasswd file as
  52. /etc/smbpasswd (or /etc/smbpasswd.tdb), and the smb.conf file as
  53. /etc/smb.conf.  You can override these options by setting CONFIGOPTS when
  54. calling make.  E.g., if you have your smb.conf file in /usr/etc and your
  55. smbpasswd file in /usr/etc/private, you might run
  56.  
  57.     make CONFIGOPTS="--with-privatedir=/usr/etc/private --with-configdir=/usr/etc"
  58.  
  59. For a complete list of available configuration options, see
  60. './samba/configure --help'
  61.  
  62.  
  63. Installing the module
  64. =====================
  65.  
  66. If all goes well in the build process, the file pam_smbpass.so will be
  67. created in the current directory.  Simply install the module into your
  68. system's PAM module directory:
  69.  
  70.         install -m 755 -s bin/pam_smbpass.so /lib/security
  71.  
  72. and you're all set.

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right