smbldap-useradd: fails to set several sambaXXX attributes

Bug #1075608 reported by Paul Stoever
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
smbldap-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The smbldap-useradd tool called with option -a should add a samba account to the LDAP with either the attributes mentioned below provided from command line or from config script. The script creates the account, but fails to add the attributes for sambaHomeDrive, sambaHomePath, sambaProfilePath, sambaLogonScript, sambaPrimaryGroupSID to the LDAP entry.

Ubuntu release: Ubuntu 12.04.1 LTS (server, amd64)
Version of tools: 0.9.7-1ubuntu1

However, I could trace the problem to a line in the perl file. A patch remedying the problem is attached.

Tags: patch
Revision history for this message
Paul Stoever (stoever) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in smbldap-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Tony Maro (tonymaro) wrote :

I found other issues with the current version after updating. For me every user gets assigned the domain SID from the server's local SID in the smbldap.conf file. I ended up having to force the domain's sid into that config field instead of the local sid. It just wouldn't look up the domain sid given the domain name no matter what. Also, there was a reference to a non-existent file where they'd added an extension that shouldn't exist to the passwd tool. It's like someone opened these scripts and just made random changes in a few places for no apparent reason.

I don't often have to create new users, so I didn't realize this was a problem after I updated the server until today. It's disappointing that the team in charge of this would push out a LTS release with such a buggy enterprise control tool.

@ Paul, thanks for the patch, it saved me a huge headache! This along with three other fixes I had to make to the scripts finally got me running again.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch for smbldap-useradd" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.