View Full Version : [ubuntu] SAMBA and ldap
veggis
November 22nd, 2011, 05:02 PM
Someone know what to do with this error
Global symbol "$SID" requires explicit package name at /usr/share/doc/smbldap-tools/configure.pl line 350
and how to add sudo user to ldap-users? Because now I cant log in as root or sudo users only as ldap users, and not ldap admin.......
regards
HermanAB
November 23rd, 2011, 06:07 AM
Hmm, playing with authentication has its problems.
You would need to boot into single user mode to get into your system and fix things.
luvshines
November 25th, 2011, 08:52 PM
Someone know what to do with this error
Global symbol "$SID" requires explicit package name at /usr/share/doc/smbldap-tools/configure.pl line 350
and how to add sudo user to ldap-users? Because now I cant log in as root or sudo users only as ldap users, and not ldap admin.......
regards
Edited: Was thinking of creating LDAP user with uidNumber 0 and using it as fake root but then remembered that the PAM would be having pam_succeed >500 restriction and would disallow login :(
Qutaibah
December 10th, 2011, 03:11 PM
same problem :(
when I am trying
sudo perl /usr/share/doc/smbldap-tools/configure.pl
while
Samba - Primary Domain Controler
the error
qutaibah@ubuntuserver:~$ sudo perl /usr/share/doc/smbldap-tools/configure.pl
Global symbol "$SID" requires explicit package name at /usr/share/doc/smbldap-tools/configure.pl line 350.
Execution of /usr/share/doc/smbldap-tools/configure.pl aborted due to compilation errors.
qutaibah@ubuntuserver:~$
:(
luvshines
December 11th, 2011, 08:56 AM
Did you try what the configure.pl script says just above the 350 line:
# Put your own SID. To obtain this number do: \"net getlocalsid\".
# If not defined, parameter is taking from \"net getlocalsid\" return
Are you able to run 'net getlocalsid' command ?
If yes, then maybe you can simply change line 350 as
SID=\"<SID-returned-by-getlocalsid>\"
cleverghost
December 14th, 2011, 03:49 AM
I am also having the same problem as above, though I have populated the SID field with the output from:
sudo net getlocalsid
and it still gives me this:
Global symbol "$SID" requires explicit package name at /usr/share/doc/smbldap-tools/configure.pl line 350.
Execution of /usr/share/doc/smbldap-tools/configure.pl aborted due to compilation errors.
Trying to get samba, openldap, and phpldapadmin to run together for a document server.
luvshines
December 14th, 2011, 08:07 PM
On my system, though I didn't run the script till the end, but just to find out the errors, ran it as 'perl configure.pl'
Fixed the following to get it working
## On lines 314 and 315, added a \ before the $ in the end
# \$Source: /opt/cvs/samba/smbldap-tools/configure.pl,v \$
# \$Id: configure.pl 26 2010-11-15 14:28:01Z mm1 \$
## On lines 527 and 532, added \ before the "
# Allows not to use smbpasswd (if with_smbpasswd=\"0\" in smbldap.conf) but
# Allows not to use slappasswd (if with_slappasswd=\"0\" in smbldap.conf)
That should work I guess.
nnr
March 1st, 2012, 05:37 PM
hello everybody
I have the same problem with configure.pl from smbldap-tools.I have tried all solution that I find on the web but no result.
I still have this message
"
Global symbol "$SID" requires explicit package name at /usr/share/doc/smbldap-tools/configure.pl line 350
did someone find soltuion?
thanks
fadec
April 7th, 2012, 02:56 PM
Final solution is:
sudo net getlocalsid
Substitute with given SID (for e.g. SID for domain DC0 is: S-1-5-21-1038398530-1857452570-2395030447) $SID
Do corrections as proposed above:
## On lines 314 and 315, added a \ before the $ in the end
# \$Source: /opt/cvs/samba/smbldap-tools/configure.pl,v \$
# \$Id: configure.pl 26 2010-11-15 14:28:01Z mm1 \$
## On lines 527 and 532, added \ before the "
# Allows not to use smbpasswd (if with_smbpasswd=\"0\" in smbldap.conf) but
# Allows not to use slappasswd (if with_slappasswd=\"0\" in smbldap.conf)
In my case (Ubuntu server 11.10) in p.3 last two lines were correct already.
NB Don't do any comments around lines mentioned above with in the configure.pl - it will take to another mistake(s).
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.