Bug 165177 - ports/net/smbldap-tools 0.9.7 smbldap-useradd does not set all Samba attributes
Summary: ports/net/smbldap-tools 0.9.7 smbldap-useradd does not set all Samba attributes
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 12:50 UTC by Andrey Simonenko
Modified: 2012-02-17 13:50 UTC (History)
0 users

See Also:


Attachments
file.diff (957 bytes, patch)
2012-02-15 12:50 UTC, Andrey Simonenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Simonenko 2012-02-15 12:50:12 UTC
The @adds array is declared as a local variable in one place in
smbldap-useradd.pl, and later its value is checked outside of its
declaration scope.  As a result just added Samba user will not get
some Samba attributes.

If this change goes to smbldap-tools port, then please do not
forget about ports/161967.

Fix: Apply this change to smbldap-tools sources or as a patch for
the smbldap-tools port:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-02-15 12:50:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Martin Matuska freebsd_committer freebsd_triage 2012-02-15 14:13:21 UTC
Please check if this does the job:
http://svn.gna.org/viewcvs/smbldap-tools?view=revision&revision=124
http://svn.gna.org/viewcvs/smbldap-tools?view=revision&revision=125

Thanks

-- 
Martin Matuska
FreeBSD committer
http://blog.vx.sk
Comment 3 Andrey Simonenko 2012-02-16 11:07:19 UTC
On Wed, Feb 15, 2012 at 03:13:21PM +0100, Martin Matuska wrote:
> Please check if this does the job:
> http://svn.gna.org/viewcvs/smbldap-tools?view=revision&revision=124
> http://svn.gna.org/viewcvs/smbldap-tools?view=revision&revision=125
> 

I applied these changes to installed smbldap-tools's programs and looks
like everything work as expected.  I would prefer my change for
smbldap-useradd.pl, but this is just a question of optimization and style.
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-02-17 13:47:01 UTC
mm          2012-02-17 13:46:47 UTC

  FreeBSD ports repository

  Modified files:
    net/smbldap-tools    Makefile 
  Added files:
    net/smbldap-tools/files patch-svn-123_125 
  Log:
  Add patch from vendor SVN.
  
  PR:             ports/161967, ports/165177
  Submitted by:   Andrey Simonenko <simon at comsys.ntu-kpi.kiev.ua>
  
  Revision  Changes    Path
  1.31      +1 -0      ports/net/smbldap-tools/Makefile
  1.1       +35 -0     ports/net/smbldap-tools/files/patch-svn-123_125 (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Martin Matuska freebsd_committer freebsd_triage 2012-02-17 13:50:56 UTC
State Changed
From-To: open->closed

Resolved. Thanks!