Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Samba 3 & LDAP - Error loading profiles

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Arkanjo
n00b
n00b
User avatar
Posts: 24
Joined: Sat May 24, 2003 9:02 pm
Location: Portugal
Contact:
Contact Arkanjo
Website

Samba 3 & LDAP - Error loading profiles

  • Quote

Post by Arkanjo » Wed May 26, 2004 12:15 pm

Hi,

I'm setting up Samba with ldap backend and everythin appears to be working correctly except for profiles.

Using:

Code: Select all

net-fs/samba-3.0.2a-r2  +acl +cups +kerberos +ldap -mysql -oav +pam +python +readline -xml
net-nds/openldap-2.1.26 +berkdb +crypt -debug +gdbm -ipv6 +kerberos -odbc +perl +readline +samba -sasl -slp +ssl +tcpd
smbldap-tools-0.8.4   (installed from the source)
When a user 'testa' tries to logon from a Win2K system that has joined the
domain he gets the following error message:

"Windows did not load your roaming profile and is attempting to log you on
with your local profile. Changes to the profile will not be copied to the
server when you logoff. Windows did not load your profile because a server
copy of the profile folder already exists that does not have the correct
security. Either the current user or the Administrator's group must be the
owner of the folder. Contact your network administrator."

But on the server he creates the profile dir. It is created when he
tries to log on, but with nothing on it.

The profile folder before he tries to logon:

Code: Select all

[profiles]# ls -la
total 12
drwxr-xrwt    3 root     Domain Admins     4096 Apr 24 09:09 .
drwxr-xr-x    4 root     Domain Admins     4096 Apr 22 23:04 ..
The profile folder after he's logged on:

Code: Select all

minho profiles # ls -la
total 12
drwxrwxrwt  3 root  root         4096 May 26 14:02 .
drwxr-xr-x  8 root  root         4096 May 25 18:41 ..
drwx------  2 testa Domain Users 4096 May 26 14:02 testa

minho profiles # ls -la testa/
total 8
drwx------  2 testa Domain Users 4096 May 26 14:02 .
drwxrwxrwt  3 root  root         4096 May 26 14:02 ..
My smb.conf:

Code: Select all

...
[profiles]
   # chmod 1777 /opt/samba/profiles
   path = /opt/samba/profiles
   read only = no
   writeable = yes
   create mask = 0600
   directory mask = 0700
   browseable = No
   guest ok = Yes
   profile acls = yes
   force user = %U
   valid users = %U "Domain Admins"
The user:

Code: Select all

minho samba # pdbedit -Lv testa
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MOONORG))]
smbldap_open_connection: connection opened
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MOONORG))]
smbldap_open_connection: connection opened
init_sam_from_ldap: Entry found for user: testa
Unix username:        testa
NT username:          testa
Account Flags:        [U          ]
User SID:             S-1-5-21-2374267749-3844533553-1363514809-3002
Primary Group SID:    S-1-5-21-2374267749-3844533553-1363514809-513
Full Name:            System User LDAP
Home Directory:       \\PDC-MOONORG\testa
HomeDir Drive:        H:
Logon Script:         testa.cmd
Profile Path:         \\PDC-MOONORG\profiles\testa
Domain:               MOONORG
Account desc:         System User LDAP
Workstations:
Munged dial:
Logon time:           0
Logoff time:          Tue, 19 Jan 2038 03:14:07 GMT
Kickoff time:         Tue, 19 Jan 2038 03:14:07 GMT
Password last set:    Tue, 25 May 2004 20:37:22 GMT
Password can change:  0
Password must change: Mon, 19 Jul 2004 20:37:22 GMT
From the log i can catch this errors:

Code: Select all

[2004/05/26 14:07:16, 2] rpc_parse/parse_prs.c:netsec_decode(1575)
  netsec_decode: FAILED: packet sequence number:
[2004/05/26 14:07:16, 0] rpc_server/srv_pipe.c:api_pipe_netsec_process(1371)
  failed to decode PDU
[2004/05/26 14:07:16, 0] rpc_server/srv_pipe_hnd.c:process_request_pdu(605)
  process_request_pdu: failed to do schannel processing.
[2004/05/26 14:07:17, 1] smbd/service.c:make_connection_snum(705)
  medeiros (192.168.10.123) connect to service profiles initially as user testa (uid=1001, gid=513) (pid 19184)
Everything else is working. testa can logon and access all shares including
the home share, and write to the profile dir. It's like it was some problem only on the logon.

Anyone was a clue on this ?? really need help on this

Regards,
RNuno
There are 10 types of people in the world; those who understand binary, and those who don't
Top
sj7trunks
Retired Dev
Retired Dev
User avatar
Posts: 6
Joined: Wed Sep 10, 2003 5:51 pm
Location: Silicon Valley

  • Quote

Post by sj7trunks » Wed May 26, 2004 3:03 pm

add this to the [global] part of smb.conf

server schannel = no

as per said in the man file of smb.conf:

Please note that with this set to no you will have to apply the WindowsXP requireSignOrSeal-Registry patch found in the docs/Registry subdirectory.

I personally turn it off since schannel has always caused me problems in the past. This will get rid of your schannel log errors, as for the other error's please let me know if they still exist AFTER the server schannel option has been added.

-Benjamin
Top
Arkanjo
n00b
n00b
User avatar
Posts: 24
Joined: Sat May 24, 2003 9:02 pm
Location: Portugal
Contact:
Contact Arkanjo
Website

  • Quote

Post by Arkanjo » Wed May 26, 2004 4:29 pm

add this to the [global] part of smb.conf

server schannel = no
Well, taht removed the errors but not the problem.

Anyway I found out the solution, on the [global] part I had:

Code: Select all

nt acl support = no
so I putted on the [profiles] to Yes and voila it worked 8)

Thank you very mutch for your help.

Regards,
RNuno
There are 10 types of people in the world; those who understand binary, and those who don't
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic