Directory Server 5.2 - adding entries

unix

    Sponsored Links

    Next

  • 1. I/O redirect weirdness?
    Under Solaris 2.6 we had a bourne shell script that, among other things, ran the following command /bin/telnet 10.0.0.1 2038 >> $DIR/foo.log & /bin/telnet 10.0.0.2 2038 >> $DIR/bar.log & In Solaris 8 and 9, this doesn't work anymore. If I take the ampersand off the end of the line, the next line never gets executed. If I leave the ampersand on to background the telnet command, the telnet session appears to connect and then immediately disconnect. All that gets logged in either foo.log or bar.log is Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is '^]'. Any ideas? Is it something to do with telnet having changed between versions? Or sh? -- No boom today. Boom tomorrow. XXXX@XXXXX.COM There's always a boom tomorrow. -- Susan Ivanova
  • 2. can't mount cdrom
    I've had my Solaris 9 Ultra 10 workstation running for some time now and am trying to find my CDROM device to mount (e.g. mount -F hsfs -o ro /dev/dsk/xxxx /cdrom). I can't find it. trying to use /dev/sr0 fails saying it's already mounted, but an fuser command shows nothing using that. I just can't remember what device my CDROM drive is on to mount it. How can I find this?
  • 3. PHP von Solaris Sparc slow
    Hi, I have compiled php 4.3.0-4.3.3 on a Sun 280R 2x1,2GHZ, 8GB RAM Ultra Sparc III on Solaris 9 with gcc 3.3 and all optimization options. The performance is still slow. Our testfile contains an array. On a Linux PC (P3, 800Mhz, 256MB RAM) the testfile took about 3,9sec's. The Solaris Server takes 3,7sec and a new notebook with liunx only 1,8sec's. Any suggestions why Solaris is that slow or any optimization hints? thanks, Mike
  • 4. ppro and incremental patching
    Hi, when using pprosvc -i it downloads and installs *every* patch available, no matter it is already installed or not. How can I avoid that? I would like to cron that job, but... Thanks, Helmut

Directory Server 5.2 - adding entries

Postby Jerrod » Wed, 23 Aug 2006 21:53:35 GMT

I recently imported a group of users into ldap via ldapaddent and a
password and shadow file.  I would like to add the objectClass "person"
to these entries.  I'm having problems with the syntax for the ldif
file.  Here is what I currently have that is not working.

____________________________________________________

dn: cn=FirstName LastName,ou=people,dc=domain,dc=com
changetype: modify
add: objectClass
objectClass: person
-
add: sn
sn: LastName
____________________________________________________

I'm gettnig a return code of 65 which is:
LDAP_OBJECT_CLASS_VIOLATION: sent by Directory Server if the modified
entry does not comply with the schema.

objectclass: cn and sn
I'm trying to add the sn and already have the cn?  Thanks for the help.


Re: Directory Server 5.2 - adding entries

Postby Robert Gruener » Wed, 23 Aug 2006 22:06:03 GMT



You may need one or more of theese
         objectClass: top
         objectClass: person
         objectClass: organizationalPerson
         objectClass: inetOrgPerson
         objectClass: posixAccount

Start your console and have a look where person is located. Very likely 
it is in inetOrgPerson.


-- 


Gruss / Cheers

Robert

Re: Directory Server 5.2 - adding entries

Postby Jerrod » Wed, 23 Aug 2006 22:27:12 GMT

Robert,

manually added via the gui the person and sn object to a user and it
worked fine so it should just be those two entries.  To make sure I did
and ldapsearch on a user with the person attribute and one without and
the only difference between the two entries was "person" and "sn".

Thanks,
Jerrod


Re: Directory Server 5.2 - adding entries

Postby Tim Bradshaw » Thu, 24 Aug 2006 01:25:46 GMT



I suspect that the problem is that there are two (attempted)
transactions here: adding the person objectclass and then adding the sn
attribute.  After the first of these the object does not agree with the
schema.

Two workarounds I can think of: turn off schema validation temporarily
(would seriously suck), or go via some intermediate class (possibly one
you make up) where sn is merely optional.

--tim


Similar Threads:

1.Directory Server 5.2 - User sessions

Is anybody knows if there is a kind of control that doesn allow two
sessions of the same login in the same time in Directory Server 5.2 ?

Tanx,
Fabiane Camargo.

2.Installed Directory Server 5.2 P4, but 'directoryserver -l' doesn't show version

ohaya wrote:
> Hi,
> 
> I just installed DS 5.2 P4 on Solaris 9.  Since this is for a small
> test, I did the install by running 'setup' and chose 'Typical', and it
> seems to be working.  
> 
> However, if I do:
> 
>    directoryserver -l
> 
> it says "Error: no version available"
> 
> Also, I cannot set the default version.
> 
> For now, I'm starting DS using the start-xxxx script, but I would like
> to get the 'directoryserver' command to work.
> 
> Does anyone know how I can accomplish that?
> 
> Thanks,
> Jim
directoryserver does not have a -l option. Only as subcommand to an option.


-- 


Gruss

Robert

3.Installed Directory Server 5.2 P4, but 'directoryserver -l' doesn'tshow version


Robert Gruener wrote:
> 
> ohaya wrote:
> > Hi,
> >
> > I just installed DS 5.2 P4 on Solaris 9.  Since this is for a small
> > test, I did the install by running 'setup' and chose 'Typical', and it
> > seems to be working.
> >
> > However, if I do:
> >
> >    directoryserver -l
> >
> > it says "Error: no version available"
> >
> > Also, I cannot set the default version.
> >
> > For now, I'm starting DS using the start-xxxx script, but I would like
> > to get the 'directoryserver' command to work.
> >
> > Does anyone know how I can accomplish that?
> >
> > Thanks,
> > Jim
> directoryserver does not have a -l option. Only as subcommand to an option.
> 


Hi,

When I type just "directoryserver", I get:

Usage: directoryserver
	   -setdefaultversion | -d <version>
Usage: directoryserver
	   -getdefaultversion | -g
Usage: directoryserver
	   -listversions | -l
Usage: directoryserver
	   -useversion | -u <version> subcommand {options-and-arguments ...}
	where options-and-arguments depend on the specific subcommand
Usage: directoryserver
	   subcommand {options-and-arguments ...}
	where options-and-arguments depend on the specific subcommand

but again, when I try the -l, I get the error from my original post.

Jim

4.Sun One Directory Server 5.2 replication

Hi, folks

In Sun One Directory Server 5.2 replication deployment, when I set up
hub and consumer servers, do they need to have the similiar sizing as
master server?
For instance, machine model(CPU, memory) and storage size etc.
Do they keep the same amount of information as the master server?

Thanks a lot.

Perry

5.Sun ONE Directory Server 5.2

Hi ,

I have a installation of Sun ONE Directory Server 5.2 on a Unix box -
Solaris 8 ( SPARC) on which I have created a instance to store some
objects.Lets say this instance is running on a port :6767
Now to carry out a test procedure I want to hang this 6767 port so that
my application is not able to access the objects stored in this
instance though when we do a "netstat -na | grep"6767" this port should
come as busy or in hang state in no circumstances it should be free.
I have tried few things that is by making the disk full 100 % in which
this directory server is installed but no luck till now .

Please let me know at the earliest how to hand ldap service on this
particular port such that slapd process of directory server hangs.

Thanks in advance

Regards,

Amit

6. Installed Directory Server 5.2 P4, but 'directoryserver -l' doesn't show version

7. Directory server 5.2 startup error

8. Directory server 5.2 uninstall problem



Return to unix

 

Who is online

Users browsing this forum: No registered users and 68 guest